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

Button shouldn't call measureText() so many times

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: Button
    • None
    • Affected OS(s): Windows
      Language Found: English

    Description

      Button calls measureText() in layoutContents() and in measure(). We should cache this result instead of calling it so many times (measureText() is expensive). We should invalidate this cache when label is changed or when a font-affecting style is changed.

      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: