Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): Windows
Language Found: English
Description
Steps to reproduce:
1. compile/run following code:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
creationComplete="openAWindow()"
close="myWin.close()">
<fx:Script>
<![CDATA[
import spark.layouts.BasicLayout;
import spark.components.Button;
import spark.components.Window;
public var myWin:Window=new Window();
public function openAWindow():void
public function resizeWindow():void
{ myWin.width=400;//Math.round(500*Math.random()); myWin.height=500;//Math.round(450*Math.random()); } ]]
>
</fx:Script>
<s:Button y="150" label="resizeWindow" click="resizeWindow()"/>
</s:WindowedApplication>
2. when the app is launched, minimize the window.
3. in WindowedApplication, click "resizeWindow" button
4. restore the window
->window size isn't changed.
5. maximize the window, then minimize it, then click "resizeWindow" button, click the task icon on the toolbar
->window size is still maximized.
Expected Results:
window size should be updated.
Workaround (if any):
restore the window, then updating window works as expected.