I am wondering how to accurately get the width of an object prior to it
getting rendered?
I have an object that I am 'building' that is a composite of a few
controls (TextArea, Button, Label) and a few containers. Part of the object
is a qx.ui.basic.Label that I need to know how wide it is to calculate some
things. When I use this line, prior to rendering I get 69 as the width:

this.theCaption.getSizeHint()['width']

But if I issue that same call after it gets rendered, the width is reported
as 62. So all of my calculations are off by 7. I am not changing the font of
the label after creating it so that can't be the issue. Is there a better
way to get the width of the label?

Thanks,
Jim
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to