EasyUI Forum
November 05, 2025, 03:44:45 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: move of dialog window inside layout issue  (Read 10222 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« 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 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 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})
}
}
})
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 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) ?

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!