I have an HBox with a fixed Width and Height and a Border. In that HBox I have a viewStack with a few different views.
When the viewStack changes views, I want the HBox container to keep resizing to its content. Currently it stays at the fixed width.
Is there any way to do that with an HBox setting?
Resizing HBox width to fit content
actionscript-3apache-flexmxml
Best Answer
You have to remove all sizing on the HBox. So remove any
width
orpercentWidth
attributes. Also make sure yourViewStack
is resizing first.