Thx, it works with centerToBrowser :)
Tobias Koller (GERMO GmbH) schrieb:
> Try this:
> var dialogSearch = new qx.ui.window.Window("Edit",
> "icon/16/apps/accessories-text-editor.png");
>
> dialogSearch.setSpace("middle", 950, "middle", 550);
> dialogSearch.setModal(true);
>
> dialogSearch.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: [qooxdoo-devel] Problem to center windows
>
> 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");
> dialogSearch.setSpace("middle", 950, "middle", 550);
> dialogSearch.setModal(true);
> dialogSearch.setCentered(true);
> dialogSearch.addToDocument();
> dialogSearch.show();
>
> I tried it also with setWidth() and setHeight() and setCentered and also
> with the setSpace variant shown but without setCentered.
>
> Any hints?
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel