4 Replies Latest reply on Dec 14, 2009 11:58 PM by Flex harUI

    Scroll Bars on Application, not on child box as expected


      I need a sanity check here!  For whatever reason I cannot figure out why this is not working they way I
      think it should.  The following basic application is meant to split the screen in two parts - a left part 
      as a menu, and the right part to have content.   I've filled the right part with labels to create scroll bars - however
      I would expect them to appear on the 'content' box - but instead it shows up on the application.  I've tried
      a bunch of stuff (i.e. turning off scroll bars on the application, playing with heights/widths, percentages/explict #'s)
      but I can't get it to work how I think it should.
      My guess is this is something easy and simple I'm just overlooking - any help would be appreciated!
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                          xmlns:mx="library://ns.adobe.com/flex/halo"  layout="vertical" 
                     private var dp:Array = new Array(30);
           <mx:HDividedBox width="100%" height="100%">
                <mx:Panel width="15%" height="100%">
                     <mx:Label text="left"/>
                <mx:Box id="content" width="85%" height="100%" verticalScrollPolicy="auto" horizontalScrollPolicy="auto" >               
                     <mx:Repeater dataProvider="{dp}">
                          <mx:Label text="hello!" />