Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.0 (Release)
-
None
-
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.