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

RichText and RichEditableText initialize GlobalSettings the first time they're run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.0 (Release)
    • None
    • Spark: RichText
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Make a flex app that sets GlobalSettings.resolveFontLookup to use its own resolveFontLookup function and later constructs a RichText or RichEditableText

      Actual Results:
      RichText or RichEditableText calls initClass the first time it gets constructed, which writes over everything in GlobalSettings
      resolveFontLookup function is reset, so my font resolution code broke

      Expected Results:
      Initializing GlobalSettings really shouldn't depend on when a RichText happens to get constructed. In my case, it was being constructed programmatically. It was made a bit harder to figure out because a RichEditableText was being initialized beforehand, so I was fooled into thinking the init routine was safely run already, but it gets run again on the RichText constructor.

      Workaround (if any):
      I'm constructing a RichText and RichEditableText before setting resolveFontLookup in GlobalSettings, which does work around the problem.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: