EasyUI Forum

General Category => Bug Report => Topic started by: codewriter on December 05, 2014, 04:48:56 AM



Title: dialog or window drag bug!
Post by: codewriter on December 05, 2014, 04:48:56 AM
Drag a dialog or window to the edge of the browser window department for is blocked by the browser, unable to move!
chrome or IE!


Title: Re: dialog or window drag bug!
Post by: jarry on December 05, 2014, 07:59:33 AM
Just adjust the position of dialog after moving the dialog. The code below shows how to achieve this functionality.
Code:
$('#dlg').dialog({
onMove: function(left,top){
if (top < 0){
$(this).dialog('move', {top:0})
}
}
})


Title: Re: dialog or window drag bug!
Post by: codewriter on December 07, 2014, 06:09:28 PM
thanks!