Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Create an app with a PopUpMenuButton component that calls an event handler function upon itemClick.
2. Call Alert.show() in the event handler function (see attached demo app).
3. At runtime, select item from PopUpMenuButton's drop-down list.
Actual Results:
The Alert window appears in the application upper left corner.
Expected Results:
The Alert window should be centered on the screen.
Workaround (if any):
(a) Explicitly position the Alert with:
private function itemClickHandler(event:MenuEvent):void
(b) instead of explicitly setting the x/y and doing "math", use the PopUpManager class's centerPopUp() method:
var alrt:Alert = Alert.show("any old label");
PopUpManager.centerPopUp(alrt);
(c) display the Alert using callLater().
Appears to be a regression from between 3.1 and 3.2.