Just move win.open() into the handler of your async call after you added your widgets to it (there it would be this.open() I guess).
Cheers, Fritz On Fri, 24 Feb 2012, omrihar wrote: > Thanks for all your help! > > I am afraid to say that I forgot to mention one important fact - > the window is a subclass of qx.ui.window.Winodw, which adds > all its children from the constructor of the object, and as I mentioned > before, it does this AFTER an asynchronous call to the server. > > Assuming the window class is called "my.window", > I open it with: > var win = new my.window(); // now asynchronous server call happens and the > widget gets built. > win.open(); > > As you can see, (and I'm realizing while describing), the problem > is that the open command can run before the widget is completely > ready. I considered putting the open command inside the constructor, > but sometimes I want to add listeners to the window before it is open. > > An idea occurs to me while writing this reply - to add to the window a > "finishGeneration" event which can be used to open it, or to pass the > constructor a parameter telling it to open the window when it is ready. > If this is done, I can use the "appear" event to center the window. > Does a better way occur to you or is this a good solution? > > Best wishes, and thanks again for the help, > Omri > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/New-window-placement-tp7314259p7315008.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- 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 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
