Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Won't Fix
-
Adobe Flex SDK 4.0 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s):
Language Found: English
Description
Steps to reproduce:
1.
var currentTab:Panel = ...;
var text:Text = currentTab.getChildByName("...") as Text;
text.setStyle("fontFamily",...);
text.setStyle("fontSize",...);
text.setStyle("leading",...);
text.x = ...
text.y = ...
text.text = ...;
text.setStyle("textAlign","right");
text.validateNow();
2. Text.textWidth
Actual Results:
Text.textWidth return last textWidth instead of new value
Expected Results:
Text.textWidth return the actual width value after Text.text is assigned to other value.
Workaround (if any):
call Text.measuredWidth instead of Text.textWidth