Hi, for setCentered(true); to work you need to use window.open(); not
window.show() if you check the Window class code you'll notice that only the
open function has the call CenterToBrowser()
This way you dont have to subscribe to an event, the window is automatically
centered when open :)
Rega
PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Leander
> Hanwald
> Gesendet: Donnerstag, 21. Juni 2007 15:13
> An: qooxdoo Development
> Betreff: [qooxdoo-devel] Problem to center windows
>
> Hi,
>
> I have a problem to center inpage windows (qx.ui.window.Window)
>
&
ch.addEventListener("appear", function(e){
dialogSearch.centerToBrowser();
});
dialogSearch.show();
Tobias
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Leander Hanwald
Gesendet: Donnerstag, 21. Juni 2007 15:13
An: qooxdoo Development
Betreff: [qoo
Hi,
I have a problem to center inpage windows (qx.ui.window.Window)
They are simply open in the left top corner. The identical code works in
0.6, but not in 0.7
I tried it with this code:
var dialogSearch = new qx.ui.window.Window("Edit",
"icon/16/apps/accessories-text-editor.png");
dialogSearc