EasyUI Forum

General Category => Bug Report => Topic started by: mzeddd on April 15, 2015, 08:07:57 AM



Title: move of dialog window inside layout issue
Post by: mzeddd on April 15, 2015, 08:07:57 AM
Hi,

If we return back to layout example from http://www.jeasyui.com/forum/index.php?topic=4715.0 (http://www.jeasyui.com/forum/index.php?topic=4715.0) and try to move dialog inside layout we can notice one thing:

If I move dialog on top as much as I can and leave it there then I'll not be able to move it again because dialog heading is not be visible.

Can this fixed in the following ways? :
- don't let user to move dialog that way
- put dialog/windows on top of layout parts

thanks.


Title: Re: move of dialog window inside layout issue
Post by: jarry on April 15, 2015, 05:46:23 PM
Please try the following code to solve this issue.
Code:
$('#dlg').dialog({
onMove: function(left, top){
if (top < 0){
$(this).dialog('move', {top:0})
}
}
})


Title: Re: move of dialog window inside layout issue
Post by: mzeddd on April 16, 2015, 06:46:47 AM
It helps to solve this problem.

Is it possible to include this fix into patch somehow (available only for modal dialogs) ?