Hi. I have an HBox with a button that I setup programmatically. And one that I set up using MX tags.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init();"> <mx:Script> <![CDATA[ private function init():void { var hbs:HBox = new HBox(); baro.addChild(hbs); hbs.percentWidth = 100; hbs.setStyle("verticalAlign","middle"); hbs.setStyle("horizontalAlign","center"); hbs.setStyle("backgroundColor","#EEEEEE"); hbs.setStyle("paddingBottom","10"); hbs.setStyle("paddingTop","10"); var b1:Button = new Button(); hbs.addChild(b1); b1.label = "foo"; } ]]> </mx:Script> <mx:Form id="baro" width="100%" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0"> <mx:HBox width="100%" paddingBottom="10" paddingTop="10" horizontalAlign="center" verticalAlign="middle" backgroundColor="#EEEEEE"> <mx:Button label="Button"/> </mx:HBox> </mx:Form> </mx:Application> One of the hboxes has a vertical scrollbar for no apparent reason and the other doesnt. I cant figure out how to get rid of the scrollbar Any suggestions? TIA. Kind regards. Luke -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au 08 8221 6422

