DHTMLXWINDOWS method center() on long pages

Hi, when I use the method w1.center(); to center a window on a long page something weird happens.

The window is positioned in the middle of the scrolled page and the user thinks it has not opened.
I’m using the method inside DhtmlxLayout (a scrollable area).

Is there a best practice to solve this issue?

thanks in advance
V

Hello,

Please try w1.centerOnScreen().