i don't know if there is bug in vbox:addChild.
In my application the users writes text into a popup and
after the user closed the popup on the main window of my
application i add a new child (ApplicationControlBar) to a vbox.
On the first time it works but after the second time if the
users closed the popup all childs are minimixed. I have set the
minimum size of the ApplicationControlBar.
My code looks like this
public function addComment(text:String) : void
var mypanel:ApplicationControlBar = new
var box:VBox = new VBox();
//box.verticalScrollPolicy = "on";
mypanel.width = 300;
mypanel.height = 70;
box.width = mypanel.width;
box.height = mypanel.height;
var author:Label = new Label();
//author.width = mypanel.width;
//author.height = mypanel.height;
var commentText:TextArea = new TextArea();
//commentsTest.text = text;
commentText.text = text;
commentText.width = box.width;
I have already used panels before but it is the same. The
height of the childs in the vbox nearlly comes to zero at the
second time i add a component to the vbox. If i resize the childs
with the mouse the size will be ok but other times all component
height goes near zero at every addiing of one child.