How do I resize a panel object when removing some of it's children?
Posted on 2009-04-29
I have a very simple panel in a flex app. This panel has several buttons.
I can remove these buttons at will, via the panel.removeChild(buttonName) call. That works fine.
Is there a way for me to then resize the panel once this child display object is removed? I want the panel to grow in size dynamically, based on the content within. There is no option for not including the child in the layout before or after it is removed, or if there is, I cannot find it.