Reputation: 91
I have a custom component that is extending the HBOX. Am adding a VBOX and a "HBOX" to it as its children.The VBOX has a label which acts as title to component and adding/deleting a pair of LINK BUTTONS to the "HBOX" dynamically on a particular event(might be a button click).
The parent HBOX width must grow/shrink whenever the link button is added/deleted dynamically. How to calculate the same.I do not know.
Upvotes: 0
Views: 838
Reputation: 2467
you can set width and height dinamically with this:
var hb:HBox;
hb.percentHeight = 100; //height:100%
hb.percentWidth = 100; //widht:100%
Upvotes: 1
Reputation: 41
You can set width with percent (100%) or bind width property to another width property (in mxml with {}).
Upvotes: 1