It seems, one of the latest updates to Adobe Creative Suite CS5 broke something with scaling of the panels.
The problem persists on both platforms in every single Adobe Suite software.
I'm using CSXSWindowedApplication and whenever I try to set its width and height on start - the panel resets to some arbitrary dimensions with minimum width. On Mac it is 50px (Width) x Something px (Height). On Windows it is 132px x Something px (Height). On Photoshop, Illustrator and InDesign I workaround it by setting width and height maybe 5 times and it works - panel visually resizes multiple times and flickers. But in the end the width is OK.
On Dreamweaver/Flash - it doesn't work. Panel always being reset.
People confirmed it on several different computers.
I didn't experience it myself, didn't have time to check these panels, but I will try to reproduce it on a simple layout and post code here. My layout is rather complex - a lot of VBoxes and HBoxes etc.
But the problem appeared only with the latest update to CS5. All my older (CSXSWindowedApplication) panels cannot change their widths.
OK, I found the source of this bug.
minWidth. When you set minWidth on CSXSWindowedApplication with the latest updates to CS5, the suite will strangerly resize your panel to this minWidth whenever you try to set this.width. I will post it to the list of bugs.
The test case is very simple:
<csxs:CSXSWindowedApplication minWidth="10" applicationComplete="on_creation_complete()" xmlns:csxs="com.adobe.csxs.core.*" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" historyManagementEnabled="false">
// the following line will scale the panel to its minWidth value instead of 500
this.width = 500;
this.height = 500;
<mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center">
Oh! That's bad...