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

Text.textWidth do not update to new value after Text.text changed and validateNow() executed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • Adobe Flex SDK 4.0 (Release)
    • None
    • mx: Text
    • 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: