EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sectioni on November 12, 2017, 04:20:29 AM



Title: messager + datagrid = resize event issue
Post by: sectioni on November 12, 2017, 04:20:29 AM
Hello,

I am calling $.messager.alert
and when I do that, my datagrid on the page is starting to trigger multiple "scroll" events, and it's causing the UI thread of the browser to be stuck until it finishes.

The same happens when I try to resize the alert window with:
$('.messager-body').window({ width: 380, height: 180 })

How do I make the datagrid listen to resize events of the browser window or the body tag and not all DOM elements? (I guess this is the issue)

I'm on EasyUI 1.5.1


Title: Re: messager + datagrid = resize event issue
Post by: jarry on November 12, 2017, 08:11:41 PM
Please show an example to demonstrate your issue.


Title: Re: messager + datagrid = resize event issue
Post by: sectioni on November 13, 2017, 06:30:32 AM
Ok I found my problem.

I had a method for closing a layout panel inside $.parser.onComplete event
This caused resizing for the layout and all panels inside.