Hi John,

AFAIK you have to specify the width - if not on the label itself, then 
on its parent container. Note that you don't want to set allowStretchX 
to false since that covers both growing and shrinking, and shrinking is 
what you want the label to do.


Regards,
Daniel

John Spackman schrieb:
> 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

------------------------------------------------------------------------------
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

Reply via email to