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.
