Hi, i am making a vbox via actionscript and set its width and height
to 200x300... After adding a single button (or anything else) if i
throw an alert with its width and height they seem correct
but...scroll bars appear which can scroll the vbox as if it was 2000
by 2000 pixels wide/high...
The relevant code is:
var extraTagsSelectionVBox:VBox = new VBox() ;
extraTagsSelectionVBox.setStyle("cornerRadius","10") ;
extraTagsSelectionVBox.setStyle("backgroundColor","#00FF00") ;
extraTagsSelectionVBox.setStyle("borderStyle","solid") ;
extraTagsSelectionVBox.setStyle("borderThickness","3") ;
extraTagsSelectionVBox.setStyle("paddingLeft","5") ;
extraTagsSelectionVBox.setStyle("paddingRight","5") ;
extraTagsSelectionVBox.setStyle("paddingTop","5") ;
extraTagsSelectionVBox.setStyle("paddingBottom","5") ;
var b:Button = new Button() ;
b.label = "Extra Tags [Close]" ;
b.addEventListener(MouseEvent.CLICK,closeExtraTagsSelection) ;
extraTagsSelectionVBox.addChild(b) ;
//THIS ADDS the VBox in a parent container
//rawchildren...
mainContainerID.rawChildren.addChild(extraTagsSelectionVBox) ;
please can someone have a look?