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

Resizing an Alert component using setSize does not work correctly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • Adobe Flex SDK 2.0 (Release)
    • mx: Alert
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Reproduction Scenario #1 (call setSize from mouseOver event):
      1. Load the bugfile bugresizemouseover.swf
      2. Mouse over the title bar of the Alert.
      source for bugfile:
      <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="600" height="600"
      creationComplete="runTests()">

      <mx:Script>
      var a1:Alert;
      function runTests() {
      a1=Alert.show('I am an alert that zooms', 'showEffect test');
      a1.addEventListener("mouseOver", resizeAlert);
      }

      function resizeAlert(event:Event)

      { event.target.setSize(250,300); }

      </mx:Script>
      <mx:Text width="300" fontSize="15" text="Alert - setSize" />
      <mx:Text text="Mouse over the alert and watch it resize." width="400" />

      </mx:Application>


      Actual Results: The Alert resizes to the right size, but the message text and OK button are gone. The whole alert is just gray.

      Reproduction Scenario #2 (call setSize from keyDown event):
      1. Load the bugfile "bugResizekeydown.swf"
      2. Press any key except the spacebar.
      source for bugfile:
      <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="600" height="600"
      creationComplete="runTests()">

      <mx:Script>
      var a1:Alert;
      function runTests() {
      a1=Alert.show('I am an alert that zooms', 'showEffect test');
      a1.addEventListener("keyDown", resizeAlert);
      }

      function resizeAlert(event:Event) { event.target.setSize(250,300); }

      </mx:Script>
      <mx:Text width="300" fontSize="15" text="Alert - setSize" />
      <mx:Text text="Press any key and watch the alert resize." width="400" />

      </mx:Application>

      Actual Results: The Alert does not resize, but all of the contents can no longer be seen, you just see a halo green line.

      Expected Results: In both scenarios, the Alert should have resized to 250x300.

      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: