[ https://issues.apache.org/jira/browse/FLEX-16838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645503#comment-13645503 ]
Jeremy Wischusen commented on FLEX-16838: ----------------------------------------- Not entirely sure I am reproducing this in the same manner, but with the code below, the window does not disappear. Using SDK 4.9.1 on Mac OS X 10.7.5. Main App: <?xml version="1.0"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" > <fx:Script> <![CDATA[ import mx.managers.PopUpManager; import spark.components.TitleWindow; import components.MyLoginForm; private var popUp:TitleWindow; // Open the pop-up window. private function showPopup():void { if (popUp) { closePopup() } // Create a non-modal TitleWindow container. popUp = PopUpManager.createPopUp(this, MyLoginForm, false) as TitleWindow; PopUpManager.centerPopUp(popUp); } private function setInvalidX():void { popUp.x = -10.5; } private function setInvalidY():void { popUp.y = -10.5; } private function closePopup():void { PopUpManager.removePopUp(popUp) } ]]> </fx:Script> <s:VGroup width="300" height="300"> <s:Button label="Show Popup" click="showPopup();"/> <s:Button label="Set invalid Y" click="setInvalidY();"/> <s:Button label="Set Invalid X" click="setInvalidX();"/> <s:Button label="Close Popup" click="closePopup();"/> </s:VGroup> </s:Application> Component: <?xml version="1.0"?> <!-- containers\spark\myComponents\MyLoginForm.mxml --> <s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" close="handleCloseEvent();"> <s:layout> <s:VerticalLayout/> </s:layout> <fx:Script> <![CDATA[ import mx.managers.PopUpManager; // Handle the close button and Cancel button. private function handleCloseEvent():void { PopUpManager.removePopUp(this); } // Handle the OK button. private function processLogin():void { // Check credentials (not shown) then remove pop up. PopUpManager.removePopUp(this); } ]]> </fx:Script> <s:Form> <s:FormItem label="User Name"> <s:TextInput id="username" width="100%"/> </s:FormItem> <s:FormItem label="Password"> <s:TextInput id="password" displayAsPassword="true" width="100%"/> </s:FormItem> </s:Form> <s:HGroup> <s:Button label="OK" click="processLogin();"/> <s:Button label="Cancel" click="handleCloseEvent();"/> </s:HGroup> </s:TitleWindow> > PopUp window disappears if x or y coordinate becomes negative number with > fraction > ---------------------------------------------------------------------------------- > > Key: FLEX-16838 > URL: https://issues.apache.org/jira/browse/FLEX-16838 > Project: Apache Flex > Issue Type: Bug > Components: PopUp Manager > Affects Versions: Adobe Flex SDK 3.2 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Labels: easytest > > Steps to reproduce: > 1. create PopUp > 2. set x or y coordinate to some negative number with fractional part, not > integer > See attached testcase, where popup window coordinates are changed when stage > resize event occurs. > > Actual Results: > when popup window does not fit browser window (i.e. if x or y coordinate > becomes negative fractional numbers), popup disappears. > > Expected Results: > PopUp window should be tolerant to the fractional negative numbers. It works > fine with positive fractional numbers, so negative numbers should be handled > as well. > > Workaround (if any): > check popup coordinates and cast them to integer numbers. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira