wiln / flexlib

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

WindowShade does not respect percentage based heights after expansion #115

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Specify the height of a WindowShade component as a percentage of
available space.
2. Collapse the WindowShade
3. Expand the WindowShade
4. Observe the the new height is based on the measured height of the child
components, not on the percentage.

What is the expected output? What do you see instead?
The WindowShade should respect percentage based heights after
collapsing/expanding.

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

Please provide any additional information below.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:flexlib="http://code.google.com/p/flexlib/"
    layout="vertical" width="500" height="500">

    <flexlib:WindowShade label="One" height="100%" width="100%">
        <mx:Label text="I should take up most of the space" />
    </flexlib:WindowShade>
    <flexlib:WindowShade label="Two" opened="false" width="100%">
        <mx:Label text="I'm normally closed" />
    </flexlib:WindowShade>

</mx:Application>

Original issue reported on code.google.com by mpilqu...@gmail.com on 25 Apr 2008 at 8:56

GoogleCodeExporter commented 8 years ago
This is a problem for me as well.

Original comment by bridge...@gmail.com on 21 May 2008 at 4:26

GoogleCodeExporter commented 8 years ago
I have the similar problem with the same setup of the OP.

Original comment by xueguan...@gmail.com on 26 Jun 2008 at 8:40

GoogleCodeExporter commented 8 years ago
Note that you can work around this issue like this:

package mypackage
{
  import flexlib.containers.WindowShade;

  public class FullHeightWindowShade extends WindowShade
  {
    protected override function measure():void
    {
      super.measure();
      if (opened)
      {
        percentHeight = 100;
      }
    }
  }
}

Original comment by mpilqu...@gmail.com on 27 Jun 2008 at 12:03

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 8 Jan 2009 at 5:04

GoogleCodeExporter commented 8 years ago
i have the same issue, when is it going to be fixed?

Original comment by jackjack...@gmail.com on 3 Feb 2009 at 3:32