EasyUI Forum
September 14, 2025, 12:00:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: dialog or window drag bug!  (Read 8847 times)
codewriter
Newbie
*
Posts: 9


View Profile Email
« 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!
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 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})
}
}
})
Logged
codewriter
Newbie
*
Posts: 9


View Profile Email
« Reply #2 on: December 07, 2014, 06:09:28 PM »

thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!