Document Information

Last modified:
2008/04/14 11:36 by ecker

How to center a window on screen?

Here is the solution:

var win = new qx.ui.window.Window();
....
win.addEventListener("appear",function(){
  this.centerToBrowser();
}, win);
rootDocument.add(win);
win.open();

This solution works even if we don’t know the real size of the window, because it depends on its content.

Before the window is shown and know its real size, we place it at the center.

Information

Last modified:
2008/04/14 11:36 by ecker

Account

Not logged in

 
 

Job Offers

To further improve qooxdoo we are seeking javascript developers. Read more...

Rich Ajax Platform (RAP)

RAP uses qooxdoo, Java and the Eclipse development model to build rich web applications. Read more...

qooxdoo Web Toolkit (QWT)

Similar to GWT this framework allows to create impressive qooxdoo applications just using Java. Read more...

Pustefix

Pustefix is a MVC-based web application framework using Java and XML/XSLT. Read more...

 
SourceForge.net Logo

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.