Hi Alexei, Alexei Golovko wrote: > // #1 > var pane = this.getViewPane(); // return HorizontalBoxLayout > pane.addEventListener('appear', function(e) { > qx.client.Timer.once(function(e) { > this.getChildren()[0].setHeight(this.getPreferredBoxHeight()); > }, this, 500); > }); > control.set({height: '100%', width:'1*'}); > pane.add(control); // control is GroupBox > return pane; > > // #2 > var pane = this.getViewPane(); // return HorizontalBoxLayout > pane.addEventListener('appear', function(e) { > this.getChildren()[0].setHeight(this.getPreferredBoxHeight()); > }); > control.set({height: '100%', width:'1*'}); > pane.add(control); // control is GroupBox > return pane; Can you please explain what you like to achieve with the code lines above? Maybe we can work out together another solution which works correctly without any timer involved.
> I read somewhere in the wiki that > using qx.client.Timer is hackish and should be avoided. As mentioned in the wiki article (I assume you mean this article <http://qooxdoo.org/documentation/general/enterprise_application>) timeouts are not hackish by default. The article simply recommends to consider the cons which come along when using timers. cheers, Alex ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel