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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to