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

MX Alert control not updating correctly 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.12117 (by Joann)

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

      Actual Results:
      Text Alert message text overlaps the title text.

      Expected Results:
      It shouldnt overlap. Is injection.

      Workaround (if any):
      n/a


      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

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

      .myStyle

      { color: red; fontSize: 20; fontStyle: italic; fontWeight: bold; }

      </mx:Style>

      <mx:Script>
      <![CDATA[
      import mx.controls.Alert;

      protected function button1_clickHandler(evt:MouseEvent):void

      { var a:Alert = Alert.show("Check the messageStyleName style.", "Alert Test"); a.setStyle("messageStyleName", "myStyle"); // a.status = mx_internal::VERSION; }

      ]]
      >
      </mx:Script>

      <mx:Button id="b"
      initialize="b.label = mx_internal::VERSION;"
      click="button1_clickHandler(event);" />

      </mx:Application>

      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: