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

TextArea stylesheets do not inherit existing MXML styles, and yield unexpected results when existing MXML styles are excluded from the stylesheet definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: TextArea
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:

      Compile the attached MXML code, set focus to the generated text box, and then and then click the 'Reload Text' button.

      Actual Results:

      The body text in the text box changes from size 13 (the value we've explicitly set in MXML for the TextArea), to size 20 (the value we set the header text to in the actual HTML).

      Expected Results:

      The TextArea applies the new styles defined by the stylesheet, but keeps the original MXML styles, that is to say, the body text should remain at size 13, as specified in the MXML code, since we haven't changed the font size in the stylesheet.

      Workaround (if any):

      If we explicitly set the fontSize property on the stylesheet object (i.e. uncomment line 28 in the sample file: styleObj.fontSize = "13", then the TextArea retains it's original font size, as expected.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: