It was done to try to get ascenders and descenders factored into the height.


On 5/9/13 12:53 AM, "Justin Mclean" <jus...@classsoftware.com> wrote:

> Hi,
> 
> In mx:Label we have:
> 
>     mx_internal function getMinimumText(t:String):String
>     {
>          // If the text is null, empty, or a single character,
>         // make the measured size big enough to hold
>         // a capital and decending character using the current font.
>         if (!t || t.length < 2)
>             t = "Wj";
>             
>         return t;
>     }
> 
> The explanation makes sense ie says what exactly it does but why does it do
> this? It means that width of "9" greater than  width of "99" as it called by
> measure.
> 
> https://issues.apache.org/jira/browse/FLEX-17549
> 
> Thanks,
> Justin

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to