Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-17549

According to mx:Label, 9 is larger than 99

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: Label
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a Label with a text of one character, like "9"

      Actual Results:
      The measured width is way larger than it should be. For example, Label.text="9" is larger than Label.text="99".

      Expected Results:
      The measured width should reflect the text value.

      Workaround (if any):
      Extend Label to override the getMinimumText function, which replaces the client text value by an internal constant string ("Wj") if the client text value is less than two characters long. I can manage to do just that, but since I spent the last hour looking at my own code only to finally figure out that the problem was this Label.getMinimumText thing, I would be delighted to read an explanation about it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: