How can I limit the size of a child container with percentage width/height of 100%?
Example:
<mx:HBox id="container" width="100%" height="100%">
<mx:HBox id="scrollContainer" width="100%" height="100%">
<!-- keep this content limited to the size of "container" -->
<!-- I also want to use the scollers from "scrollContainer" -->
</mx:HBox>
</mx:HBox>
Right now the content inside "scrollContainer" will overflow once its bigger than "container"
EDIT
Apparently I can get the desired behavior if I change HBox to Canvas but I would still like to know how to accomplish this with a HBox and why it differs from Canvas.