I have this code:
var categoryCanvas:Canvas = new Canvas();
categoryCanvas.label = [EMAIL PROTECTED];
categoryCanvas.percentHeight = 100;
categoryCanvas.percentWidth = 100;
var categoryForm:Form = new Form();
categoryForm.percentHeight = 100;
var vbox:VBox = new VBox();
vbox.percentWidth = 100;
vbox.percentHeight = 100;
categoryCanvas.addChild(categoryForm);
vbox.addChild(categoryCanvas);
this.addChild(vbox); // 'this' is a canvas that in MXML has a large
height and width
I do proceed to add formitems and fields to the form. When I view the
app, the form does not expand to fill the canvas, and instead has
scrollbars. Anyone understand why?