Hi,

I am facing an issue while scaling a Label with truncateToFit property as true. 
While zooming in/out, sometimes the text which is truncated is displayed 
without ellipses or 1 or 2 ellipses sometimes. I tried setting 
fontAntiAliasType="animation" thinking that it might solve the issue.
But it didnt :-(

Please find the code below:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute" 
xmlns:local="*">
<mx:Script>
<![CDATA[
private function zoom():void
{
c.scaleY = slider.value / 100;
c.scaleX = slider.value / 100;
}

]]>
</mx:Script>
<mx:Canvas id="c" x="109&#8243; y="111&#8243; width="156&#8243; 
height="41&#8243; scaleX="0.5&#8243; scaleY="0.5&#8243;>
<mx:Label id="l1&#8243; x="28&#8243; y="10&#8243; 
text="Labelgettingtruncatedddddddddd" width="100&#8243; truncateToFit="true" 
fontAntiAliasType="animation"/>
</mx:Canvas>
<mx:VSlider id = "slider"
minimum = "5&#8243;
maximum = "200&#8243;
value = "100&#8243;
snapInterval = ".001&#8243;
liveDragging = "true"
change = "zoom()"/>
</mx:Application>

Could anyone of you help me finding whats going wrong here?

Thanks in Advance,
Srilatha

Reply via email to