minWidth and minHeight in the mx.core.Container
Hi,
Through the years (man, it’s been years now since Flex was released), I have seen a lot of confusion about container scroll bars.
The confusion summed up;
Developers have a child container within a parent. The child container’s measuredHeight exceeds the parent’s viewable height. The parent container then EXPANDS itself to make room for the child’s measuredHeight.
With this condition a developer thinks, well how come the parent is expanding and not showing it’s scrollbars?
The answer;
In order to increase performance of the flex framework and LayoutManager, the engineers decided that having scroll bars pop up everywhere wasn’t that appealing. So they decided to honor the minimums of a container.
This means by setting the child container’s minHeight to something below 100, essentially 0, you will now force the parent to keep it’s current height and show scrollbars for the child container that has it’s measuredHeight greater than it’s parent’s height.
Once you think about this for a second, you realize it is kind of intuitive. You now have control over scrollbar appearance.
Mike