5 Replies Latest reply on May 28, 2010 7:36 AM by -BoNzO-

    layout, scrollbar and regression ?

    -BoNzO- Level 2

      Hello,

       

      I was very surprised to see the following example didn't produce the expected result :

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         >
        
            <mx:VBox x="200" width="50%" height="50%" backgroundColor="0xFF0000" >
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
               <mx:Label text="blabla" />
              
            </mx:VBox>
           
      </mx:Application>

       

       

      Here, I'm expecting the VBox to have a scrollBar since its contentPane is definately higher than what I'm trying to size it ( 50% height of a small browser window )

       

      Yet, the scrollbar belongs to the Application.

       

      The exact same example using Spark controls has no scrollbars at all.

       

      What's happening ???