"I'm curious you're still getting scrollbar and/or no truncation of the label."
No, I do not have a small example, because the small example works as expected. It's when I expand the code into my actual application that the behavior changes slightly. I will say what I have is quite workable. I am just missing that bit of extra, nice decoration of the ellipses (...) when the text is larger then will fit into the container. The way it is currently working in my application, the text is 'cropped' at the edge of the container, but it is not 'truncated' to differentiate the addition of the ellipses and tool tip to show the entire text on mouse over. I have manually added the tool tip, but I don't know how to handle the ellipses, but I could probably live without them. Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.
--- Begin Message ---On 5/2/07, Ian Skinner <[EMAIL PROTECTED]> wrote: > Manish Jethani > > So this is what you want: > > <?xml version="1.0"?> > > … > That is close to what I want. It worked fine when the label itself was > constrained as I had been testing to simplify my code. But in my actual > code, where the label is a child of a custom MXML VBox container it is not > quite working. It is no longer stretching the container as it was without > the minWidth, but it is not truncating to the width of the container > either. Okay, let's talk MXML. <mx:VBox id="outerBox" width="200" height="100"> <mx:VBox id="innerBox" width="100%" height="100%"> <mx:Label width="100%" text="The quick brown fox jumped over the wall." /> </mx:VBox> </mx:VBox> This causes innerBox to be wider than 200 px. and as a result outerBox gets a horizontal scrollbar. <mx:VBox id="outerBox" width="200" height="100"> <mx:VBox id="innerBox" width="100%" height="100%"> <mx:Label width="100%" minWidth="0" text="The quick brown fox jumped over the wall." /> </mx:VBox> </mx:VBox> Here I've set minWidth on the label, and now the label is 200 px., truncated, and there is no scrollbar. Let me know if you've managed to simplify your code down to a small MXML example. I'm curious you're still getting scrollbar and/or no truncation of the label. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
--- End Message ---

