EasyUI Forum
May 14, 2024, 12:32:58 PM *
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 is offscreen when length of page content is greater than browser height  (Read 5810 times)
galcott
Newbie
*
Posts: 39


View Profile
« on: June 15, 2020, 09:33:48 PM »

When I open a dialog on a page where the length of the page content is greater than the height of the browser, it is centered relative to the page length, not the browser window, so it appears offscreen vertically and you have to scroll down to see it, which is obviously not acceptable. I call the move method to move it to a specific position and this works, but it seems like a bug that the vertical centering is positioning it offscreen. Is this a bug or is it intended?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: June 16, 2020, 08:36:30 PM »

Please call the 'center' method to make it display on the center of the screen.
Code:
$('#dlg').dialog('open').dialog('center');
Logged
galcott
Newbie
*
Posts: 39


View Profile
« Reply #2 on: June 16, 2020, 09:55:45 PM »

I tried that, but it gets centered relative to the length of the content, and is still offscreen, probably in the same position it would have been without calling the center method. This definitely seems to be a bug, since there's no possible reason why you would want a dialog to be offscreen!
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #3 on: June 19, 2020, 08:25:42 PM »

Please look at this example http://code.reloado.com/etuxij3/edit#preview. It works fine.
Logged
thecyberzone
Full Member
***
Posts: 176



View Profile Email
« Reply #4 on: July 22, 2020, 10:28:39 AM »

I am facing same problem in case of messager.alert control, it goes out of viewport, after scrolling it becomes visible. Please help me.
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!