Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 30, 2009 06:49
open dhtmlx forum
window need to popup center of the screen always

hi,

I am using dhtmlxtabber and each tab will have 100-200 elements and each element will have a att. window help. After scrolling when user select for help the help window need to create to the center of the screen, irrespective of the place where he is in the tab.

How to set the X,Y position for window dynamically.

Answer posted by Alex (support) on Mar 30, 2009 07:17

Hello, 

There is center() method. It centers the window in relation to its viewport.

dhxWins.window(id).center();

The sample is dhtmlxWindows/samples/settings/centring.html