Add this; (minWidth)
<mx:Label width="100%" minWidth="100" text="....
Peace, Mike
Hi All!
I have a container and Label instance inside it. Unfortunately,
truncateToFit does not work if Label instance width is set in percent.
Please, take a look at the example below:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%"
height="100%">
<mx:Box width="25%">
<mx:Label width="100%" text="Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aenean ligula. Sed eget pede sed metus
nonummy rhoncus. Nam congue, tortor nec dignissim tincidunt, augue
odio volutpat sem, non vulputate lectus nulla vitae leo. Vestibulum
aliquet bibendum felis. Aenean in turpis mattis tellus tempus sodales.
Nulla sem. Maecenas lobortis pharetra lacus. Fusce non odio nec massa
auctor pharetra. Aenean vulputate posuere justo. Nulla vitae eros vel
eros aliquet euismod." />
</mx:Box>
</mx:Application>
On the other hand, if I assign fixed width to Label instance,
everything works ok:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%"
height="100%">
<mx:Box width="25%">
<mx:Label width="200" text="Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Aenean ligula. Sed eget pede sed metus nonummy
rhoncus. Nam congue, tortor nec dignissim tincidunt, augue odio
volutpat sem, non vulputate lectus nulla vitae leo. Vestibulum aliquet
bibendum felis. Aenean in turpis mattis tellus tempus sodales. Nulla
sem. Maecenas lobortis pharetra lacus. Fusce non odio nec massa auctor
pharetra. Aenean vulputate posuere justo. Nulla vitae eros vel eros
aliquet euismod." />
</mx:Box>
</mx:Application>
But in my case Label width should be set in percents.
Sergey.
--
What goes up, does come down. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
- [flexcoders] truncateToFit does not work when percentWidt... Sergey Kovalyov
- Re: [flexcoders] truncateToFit does not work when pe... Michael Schmalle
- Re: [flexcoders] truncateToFit does not work whe... Sergey Kovalyov
- RE: [flexcoders] truncateToFit does not work when pe... Nick Watson
- Re: [flexcoders] truncateToFit does not work whe... Tom Chiverton
Reply via email to

