如何限制百分比寬度/高度爲100%的子容器的大小?Flex - 百分比高度
例子:
<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>
眼下內部「scrollContainer」的內容就會溢出,一旦它比「集裝箱」
編輯
做大顯然,我可以得到,如果我所期望的行爲將HBox更改爲Canvas,但我仍然想知道如何使用HBox完成此操作,以及它與Canvas的區別。