Hi Stefan,
an alternative to "qx.ui.core.Widget.flush()" is to use your code inside an
"appear" listener method. At the momemt the "appear" event is fired, the widget
is available at the DOM (fully rendered).
--snip--
yourComposite.addListener("appear", function(e) {
var width = this.getBounds()["width"];
});
--snip--
Nevertheless, the solution of Jim is also right. If you can avoid the "flush"
call avoid it, as Jim already mentioned.
cheers,
Alex
On Thursday February 25 2010 01:56:48 Jim Hunter wrote:
> At what point in your object creation are you trying to get the width?
> I don't recommend doing this often, but right before you try and get the
> width, make the following call:
>
> qx.ui.core.Widget.flush();
>
> I do this in places where I am not getting what I think I should be
> getting. This causes the framework to post changes to teh DOM and at that
> point you should have a width.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel