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

Alert styles incorrectly propogating when setting messageStyleName at runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • mx: Alert
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Found in 4.0.0.12327

      Steps to reproduce:
      1. Compile and run attached MXML file.
      2. Click the button.

      Actual Results:
      The messageStyleName color+fontSize gets applied to the message (yay), title (boo), status (boo) and button (boo!).

      Expected Results:
      Dont do that.

      Workaround (if any):
      Set the messageStyleName, titleStyleName, statusStyleName, and buttonStyleName styles using CSS:

      <mx:Style>
      @namespace "http://www.adobe.com/2006/mxml";

      Alert

      { /* Workaround: */ message-style-name: messSty; title-style-name: titleStyles; status-style-name: statusStyles; button-style-name: buttonStyles; }

      .messSty

      { color: red; fontSize: 24; }

      .titleStyles

      { color: black; fontSize: 12; fontWeight: bold; }

      .statusStyles

      { color: haloSilver; fontSize: 12; fontWeight: normal; }

      .buttonStyles

      { color: black; fontWeight: bold; fontSize: 12; }

      </mx:Style>

      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: