Hi Fritz,

I was able to reproduce the bug you are describing, but only in the playground.
This is due to the structure of the playground.
So your code is working well.

Regards,
Romeo

-----Ursprüngliche Nachricht-----
Von: Fritz Zaucker [mailto:[email protected]] 
Gesendet: Mittwoch, 26. Juni 2013 16:11
An: qooxdoo Development
Betreff: [qooxdoo-devel] Placement of qx.ui.window.Window()

Hi,

I'd like to have a qx.ui.window.Window() to resize and center automatically if 
the browser geometry changes.

The following seems to not work reliably (tried with Chrome and FF):

var win = new qx.ui.window.Window();
var autoSize = function() {
       var height = qx.bom.Document.getHeight() - 75;
       var width  = qx.bom.Document.getWidth()  - 75;
       win.setHeight(height);
       win.setWidth(width);
       win.center();
};
win.addListener("appear", autoSize, this); var root = 
qx.core.Init.getApplication().getRoot();
root.addListener("resize", autoSize, this); win.open();


You can even see this in Playground (just run the example and then switch
the browser to full screen size and back).

http://tinyurl.com/pyfkxb8
                                                            }
Any ideas/suggestions?

Thanks,
Fritz

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to