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.

Jim



On Wed, Feb 24, 2010 at 2:28 PM, Stefan Meyer <[email protected]> wrote:

> Hello,
>
> that was my first try but thats  breaks the script and   make an error
>
> Fehler: jobs.system.Globals.containerMiddleRight.getBounds() is null
> Zeile: 146
> > Your not using getBounds correctly. Try:
> >
> >
> > alert(jobs.system.Globals.containerMiddleRight.getBounds()["width"]);
> >
> > To the best of my knowledge, getBounds should always have values if
> > the object is on the screen and visible.
> >
> > Jim
> >
> >
> >
> > On Wed, Feb 24, 2010 at 1:08 PM, [email protected]
> > <mailto:[email protected]> <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     i need the  width and height of a composite but i dont get it
> >
> >     i alwys get "null" back
> >
> >     i try this
> >
> >     alert(jobs.system.Globals.containerMiddleRight.getWidth());
> >
> >     and someone tell me that i  must use this
> >
> >     alert(jobs.system.Globals.containerMiddleRight.getBounds("width"));
> >
> >     but alwys "null
> >
> >     How can i get the dimension of a widget?
> >
> >
> ------------------------------------------------------------------------------
> >     Download Intel&#174; 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]
> >     <mailto:[email protected]>
> >     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> ------------------------------------------------------------------------------
> > Download Intel&#174; 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
> >
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; 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
>
------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to