Set minWidth=0 on the Label

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of srikanth reddy
Sent: Monday, October 29, 2007 11:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with Label showing ... when the size
exceeds the actual given size

 

Hi,

The MXML label when i set truncateToFit="true" it
displays ... to fit to the actual size only when i set
the width in .px if i use percentage width it never
truncates the label field.

ex: it works when

<mx:Label x="40" y="19" text="{data.Family}" 
width="175" fontStyle="italic"
truncateToFit="true"/>

and it doen't work when 

<mx:Label x="40" y="19" text="{data.Family}" 
width="50%" fontStyle="italic"
truncateToFit="true"/>

can some body please tell me an work around or the
correct way do things that it works id i give a %width

Thanks,
Srikanth

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com <http://mail.yahoo.com>  

 

Reply via email to