Forums Window

Center() does not work on "scrolling" pages

Subscribe to Center() does not work on "scrolling" pages 4 post(s), 4 voice(s)

 
Avatar Maxtone 4 post(s)

Hi,

If I open up a window at the bottom of a page that as scrollbars, the window does open, but the page scrolls to the top thus leaving the window outside the viewport.

Im I the only one experiencing problems with “Center();”, when opening up a window on a page that has scrollbars?

-Maxtone

 
Avatar Weazil 19 post(s)

Doesn’t work for me either… if you search for center there should be another post from me that seb responded to with a work around but i would imagine that fixing center would been the better option…

 
Avatar Suneth 1 post

Hi,
Hey Maxtone, you are not alone! I am having the same issue. The problem is that “center()” centers the window on the document, not the viewport. Which means that window is not visible with long documents with scrollbars.

Suneth

 
Avatar dba35 1 post

Hi,

Try to call the center() method after the show() method.
It soldved the problem for me.

David.

Forums Window