wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

showCloseButton set to false hides but leaves space #215

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a standard MDICanvas to an Application
2. Add an MDIWindow to the canvas with showCloseButton="false"
3.

What is the expected output? What do you see instead?
The close button should not be considered in the layout, but it looks like
it is.  That is, minimize and maximize appear in the same locations as if
the close button was still visible.

What version of the product are you using? On what operating system?
2.4

Please provide any additional information below.
I changed the code of MDIWindowControlsContainer so that only visible
objects are considered in the layout:

{{{
            for each(var child:DisplayObject in this.getChildren())
            {
                if (child.visible) {
                    minX = Math.min(minX, child.x);
                    minY = Math.min(minY, child.y);
                    maxX = Math.max(maxX, child.x + child.width);
                    maxY = Math.max(maxY, child.y + child.height);
                }
            }
}}}

If there's a better way to do this, please let me know, but this seems like
a sensible change to me, otherwise it just looks odd, IMHO.

Thanks in advance.

Original issue reported on code.google.com by christop...@gmail.com on 22 Apr 2009 at 9:43