EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: zurfero on June 11, 2015, 04:32:23 AM



Title: How ScrollTop Dialog when open
Post by: zurfero on June 11, 2015, 04:32:23 AM
Hello.
I have a form inside a easyui-dialog, and in the dialog appear in the right the scrollbar because the form it's quite big.
When user close the dialog when save the data, and open other for do a new entry the scrollbar in the dialog it's in the same position that when user close the dialog.

You can see that I can explain in the next example:
http://jsfiddle.net/zurfero/8uehf435/32/

Follow this steps:
Open the dialog.
Scrollbar until the button OK
Close the dialog.
Open again the dialog, and you can see that the scroll it's NOT in the top of the form it's in the button ok..., it's at the end.

In my real dialog, I load the content with refresh function , but happen the same.


Best Regards, and thank you for your help in advance.
:)




Title: Re: How ScrollTop Dialog when open
Post by: stworthy on June 12, 2015, 01:20:32 AM
You have to scroll the center panel of the layout component. Please refer to http://jsfiddle.net/8uehf435/34/


Title: Re: How ScrollTop Dialog when open
Post by: zurfero on June 12, 2015, 08:10:18 AM
Work perfectly !!! ....  ;) 
Thanks very much