centerOnScreen

Hi,

I don’t know if i’m doing something wrong, but centerOnScreen is doing something like centerOnBody intead , my code (2.5) :

var dhxWins,w1;
dhxWins = new dhtmlXWindows();
dhxWins.enableAutoViewport(true);
dhxWins.setImagePath("./JS/dhtmlxwindows/imgs/");

var w1 = dhxWins.createWindow(“win-upload”,1,1, 300, 180);
w1.setText(“Upload”);
w1.attachURL(‘upload_images.php’);
w1.centerOnScreen();

the problem comes in pages with big heights, i have to scroll up to see the window.

Any clue? Thanks!

Hi,

we have reproduced the problem locally. We’ll send you the fix when it’s ready.