flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Odd SDK code for the day
Date Thu, 09 May 2013 07:53:28 GMT
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
Mime
View raw message