One feature of the Flex panel is that if a width and height are not
provided, the panel will auto-adjust based on the contents of the panel.
Currently, the mdiWindow, which implements panel, enforces a width and
height of 200, thereby overriding the auto-adjust feature of the panel.
This makes creating dynamic content with mdiCanvas a challenge. I've
adjusted my local copy of the source code to allow me to have dynamic width
and height (created a public var minimizedWidth:Number = 200 for
MDIEffectsDescriptorBase.as to retain the width when minimized).
Enhancement Request: Allow for mdiWindow to auto-adjust to contents. Remove
hard-coded minWidth, minHeight, width, height.
Found Potential Bug: When I removed the minHeight, minWidth = 200 from
mdiWindow, I found that I was able to minimize the window once and bring it
back up but when I went to minimize again the window disappeared. Through
debugging, found that it's width was 0 on the second minimize, which leads
me to believe there may be a bug in the restore code. The window was
minimized but not visible. To reproduce:
1. Comment out "minWidth = minHeight = 200;" from mdiWindow.mxml
2. Create a simple mdiCanvas and add a simple mdiWindow.
3. Minimize the window. Restore.
4. Minimize the window. The window should disappear.
Thanks,
Ray
Original issue reported on code.google.com by Ray.Seaw...@gmail.com on 24 Apr 2009 at 3:09
Original issue reported on code.google.com by
Ray.Seaw...@gmail.com
on 24 Apr 2009 at 3:09