<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Truncating text in the Flex Label control using the truncateToFit property</title>
	<atom:link href="http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: DevSachin</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-8812</link>
		<dc:creator>DevSachin</dc:creator>
		<pubDate>Fri, 07 Jan 2011 08:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-8812</guid>
		<description>example for previous comment
%lt;mx:Label text={txtname}%gt;</description>
		<content:encoded><![CDATA[<p>example for previous comment<br />
%lt;mx:Label text={txtname}%gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DevSachin</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-8811</link>
		<dc:creator>DevSachin</dc:creator>
		<pubDate>Fri, 07 Jan 2011 08:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-8811</guid>
		<description>It is not working, When i am binding text in mx:Label in flex 4. With .text property it is working fine.  

Any solution?

Sachin Dev tripathi</description>
		<content:encoded><![CDATA[<p>It is not working, When i am binding text in mx:Label in flex 4. With .text property it is working fine.  </p>
<p>Any solution?</p>
<p>Sachin Dev tripathi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: walv</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-8365</link>
		<dc:creator>walv</dc:creator>
		<pubDate>Tue, 28 Sep 2010 08:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-8365</guid>
		<description>If  you have width=&quot;100%&quot; and you need to have correct truncation on resize,
use
 mx:Label 
truncateToFit=&quot;true&quot;
text=&quot;{str}&quot;
minWidth=&quot;0&quot;</description>
		<content:encoded><![CDATA[<p>If  you have width=&#8221;100%&#8221; and you need to have correct truncation on resize,<br />
use<br />
 mx:Label<br />
truncateToFit=&#8221;true&#8221;<br />
text=&#8221;{str}&#8221;<br />
minWidth=&#8221;0&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-7553</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 22 Apr 2010 08:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-7553</guid>
		<description>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=&quot;animation&quot; thinking that it might solve the issue.
But it didnt :-(

Please find the code below:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot; xmlns:local=&quot;*&quot;&gt;
    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function zoom():void
            {
                c.scaleY = slider.value / 100;
                c.scaleX = slider.value / 100;
            }
        ]]&gt;
    &lt;/mx:Script&gt;
    &lt;mx:Canvas id=&quot;c&quot; x=&quot;109&quot; y=&quot;111&quot; width=&quot;156&quot; height=&quot;41&quot; scaleX=&quot;0.5&quot; scaleY=&quot;0.5&quot;&gt;
        &lt;mx:Label id=&quot;l1&quot; x=&quot;28&quot; y=&quot;10&quot; text=&quot;Labelgettingtruncatedddddddddd&quot; width=&quot;100&quot; truncateToFit=&quot;true&quot; fontAntiAliasType=&quot;animation&quot;/&gt;
    &lt;/mx:Canvas&gt;
    &lt;mx:VSlider id = &quot;slider&quot;
                minimum = &quot;5&quot;
                maximum = &quot;200&quot;
                value = &quot;100&quot;
                snapInterval = &quot;.001&quot;
                liveDragging = &quot;true&quot;
                change = &quot;zoom();&quot;/&gt;
&lt;/mx:Application&gt;
&lt;/pre&gt;

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

Thanks in Advance,Srilatha</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>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=&#8221;animation&#8221; thinking that it might solve the issue.<br />
But it didnt :-(</p>
<p>Please find the code below:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;absolute&quot;</span> xmlns:local=<span style="color: #ff0000;">&quot;*&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            private function zoom():void</span>
<span style="color: #339933;">            {</span>
<span style="color: #339933;">                c.scaleY = slider.value / 100;</span>
<span style="color: #339933;">                c.scaleX = slider.value / 100;</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Canvas</span> id=<span style="color: #ff0000;">&quot;c&quot;</span> x=<span style="color: #ff0000;">&quot;109&quot;</span> y=<span style="color: #ff0000;">&quot;111&quot;</span> width=<span style="color: #ff0000;">&quot;156&quot;</span> height=<span style="color: #ff0000;">&quot;41&quot;</span> scaleX=<span style="color: #ff0000;">&quot;0.5&quot;</span> scaleY=<span style="color: #ff0000;">&quot;0.5&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> id=<span style="color: #ff0000;">&quot;l1&quot;</span> x=<span style="color: #ff0000;">&quot;28&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> text=<span style="color: #ff0000;">&quot;Labelgettingtruncatedddddddddd&quot;</span> width=<span style="color: #ff0000;">&quot;100&quot;</span> truncateToFit=<span style="color: #ff0000;">&quot;true&quot;</span> fontAntiAliasType=<span style="color: #ff0000;">&quot;animation&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Canvas</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VSlider</span> id = <span style="color: #ff0000;">&quot;slider&quot;</span></span>
<span style="color: #000000;">                minimum = <span style="color: #ff0000;">&quot;5&quot;</span></span>
<span style="color: #000000;">                maximum = <span style="color: #ff0000;">&quot;200&quot;</span></span>
<span style="color: #000000;">                value = <span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">                snapInterval = <span style="color: #ff0000;">&quot;.001&quot;</span></span>
<span style="color: #000000;">                liveDragging = <span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                change = <span style="color: #ff0000;">&quot;zoom();&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Could anyone of you help me finding whats going wrong here?</p>
<p>Thanks in Advance,Srilatha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shilpa</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-6859</link>
		<dc:creator>Shilpa</dc:creator>
		<pubDate>Thu, 28 Jan 2010 10:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-6859</guid>
		<description>I have seen the problem with appending null at the end. Seen it on Linux with flash player debug version 9. Once we upgraded to flash player debug version 10, that problem went away. It isn&#039;t related to the locale stuff cos I dont even use any of the inbuilt locale flex provides.
Hope this helps.
Shilpa</description>
		<content:encoded><![CDATA[<p>I have seen the problem with appending null at the end. Seen it on Linux with flash player debug version 9. Once we upgraded to flash player debug version 10, that problem went away. It isn&#8217;t related to the locale stuff cos I dont even use any of the inbuilt locale flex provides.<br />
Hope this helps.<br />
Shilpa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-5252</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 20 Aug 2009 01:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-5252</guid>
		<description>Adrian,

I believe Adobe closed the enhancement as unable to reproduce. If you have a test that shows a truncated label where truncation shouldn&#039;t be happening, can you please attach it to that bug?

For example, the following example shows a button label that does not truncate itself:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;

    &lt;mx:Button label=&quot;The quick brown fox jumps over the lazy dog&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

As far as I know, a Button should not truncate its label unless you give the Button control an explicit width or set a left/right constraint. But if you have an example that shows otherwise, please attach it to the JIRA bug and Adobe can investigate.

Thanks,
Peter</description>
		<content:encoded><![CDATA[<p>Adrian,</p>
<p>I believe Adobe closed the enhancement as unable to reproduce. If you have a test that shows a truncated label where truncation shouldn&#8217;t be happening, can you please attach it to that bug?</p>
<p>For example, the following example shows a button label that does not truncate itself:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;The quick brown fox jumps over the lazy dog&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>As far as I know, a Button should not truncate its label unless you give the Button control an explicit width or set a left/right constraint. But if you have an example that shows otherwise, please attach it to the JIRA bug and Adobe can investigate.</p>
<p>Thanks,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-5251</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Wed, 19 Aug 2009 22:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-5251</guid>
		<description>Perhaps slightly off topic:

As far as I know, there is no way to prevent a button from truncating its text, and Adobe have closed the issue without fixing it:

http://bugs.adobe.com/jira/browse/SDK-12992</description>
		<content:encoded><![CDATA[<p>Perhaps slightly off topic:</p>
<p>As far as I know, there is no way to prevent a button from truncating its text, and Adobe have closed the issue without fixing it:</p>
<p><a href="http://bugs.adobe.com/jira/browse/SDK-12992" rel="nofollow">http://bugs.adobe.com/jira/browse/SDK-12992</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anne</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-5077</link>
		<dc:creator>Anne</dc:creator>
		<pubDate>Mon, 10 Aug 2009 13:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-5077</guid>
		<description>Inside the UITextField you can find the code:
  truncationIndicatorResource = resourceManager.getString(&quot;core&quot;, &quot;truncationIndicator&quot;); 
So I suppose this is missing within my application because I have my own resource bundle (named differently)...
I will add one with the name &quot;core&quot; and add at least the missing &quot;...&quot; to it again.

Best wishes</description>
		<content:encoded><![CDATA[<p>Inside the UITextField you can find the code:<br />
  truncationIndicatorResource = resourceManager.getString(&#8220;core&#8221;, &#8220;truncationIndicator&#8221;);<br />
So I suppose this is missing within my application because I have my own resource bundle (named differently)&#8230;<br />
I will add one with the name &#8220;core&#8221; and add at least the missing &#8220;&#8230;&#8221; to it again.</p>
<p>Best wishes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leandro</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-4477</link>
		<dc:creator>Leandro</dc:creator>
		<pubDate>Tue, 07 Jul 2009 23:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-4477</guid>
		<description>Hi,

Anne and Sohil, 
I had this problem too, I found  a solution for me... maybe it works fo you...
In the resourceManager.localeChain, I put two locales:

resourceManager.localeChain = [&#039;pt_BR&#039;, &#039;en_US&#039;];

Flex try to use the first locale, what is not found in the first, is used from the second

(Sorry for my english)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Anne and Sohil,<br />
I had this problem too, I found  a solution for me&#8230; maybe it works fo you&#8230;<br />
In the resourceManager.localeChain, I put two locales:</p>
<p>resourceManager.localeChain = ['pt_BR', 'en_US'];</p>
<p>Flex try to use the first locale, what is not found in the first, is used from the second</p>
<p>(Sorry for my english)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sohil</title>
		<link>http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/comment-page-1/#comment-4323</link>
		<dc:creator>Sohil</dc:creator>
		<pubDate>Fri, 03 Jul 2009 15:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/#comment-4323</guid>
		<description>Hey Anne ,

Did you find answer to your question ?
I m also stuck with same problem

Thanks</description>
		<content:encoded><![CDATA[<p>Hey Anne ,</p>
<p>Did you find answer to your question ?<br />
I m also stuck with same problem</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

