I'm having this issue with Extension Panels in Fireworks compiled with the Flex 4 SDK. When the panel is first opened, it has the correct dimensions and controls are laid out correctly. If I resize it at all, it scales itself instead of laying out it's controls to take advantage of the new space. This doesn't seem to occur when using Flex 3's mx:Application, only Flex 4. Any ideas?
This occurs no matter the Application container control I use - mx:Application, mx:ApplicationWindow, cs:CSXSWindowedApplication, and so on.
My Application MXML is as follows:
<?xml version="1.0" encoding="utf-8"?> <cs:CSXSWindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:cs="com.adobe.csxs.core.*" xmlns:s="library://ns.adobe.com/flex/spark" <!-- Setting width & height are the only way I can get it to show properly when first opened. --> width="200" height="200" historyManagementEnabled="false" showStatusBar="false"> <s:Button label="Click Me" /> </cs:CSXSWindowedApplication>
So they key is apparently to have this as a compiler flag:
And in applicationComplete:
CSInterface.instance.autoThemeColorChange = true;
Also use CSExtension as your base application class/component.