If you don't specifically set the width of the label, how do you expect it
to stop stretching? The label needs to know when to stop and when to wrap
(if you have Wrap set to enabled) unless you tell it where. You have to
remember that the control can not read your mind. If you put a long line of
text into it, it will display it because that is what you asked it to do. So
if you don't want the label to be more then 200 pixels, then
setMaxWidth(200) and your problem is solved.
Jim
On Tue, Oct 5, 2010 at 1:02 AM, John Spackman <[email protected]>wrote:
> Hi guys
>
> I find that unless I specifically restrict the width of a
> qx.ui.basic.Label, it will stretch all the other components around it to
> allow the text to fit into one line (as much as possible, anyway). This is
> a bit of a pain because these label's are usually long descriptions or
> user-friendly text that is expected to go into paragraphs and should fit
> into the available space as opposed to expand the available space to get one
> long line of text.
>
> Is there a way to stop Label stretching? I've tried allowGrowX=false and
> allowStretchX=false with no joy. Here's my example:
> http://tinyurl.com/2w4btzh
>
> Thanks
> John
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel