1 Reply Latest reply on Jan 3, 2011 10:18 PM by flex2008

    Scrolling issues while using viewstack

    flex2008 Level 3

      Consider this code.I except the scrollbar to appear for the innerCanvas because its height is greater than the viewstack and outerCanvas.But scrollbar does not appear.

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600">
          <mx:Canvas id="outerCanvas" width="350" height="700" borderStyle="solid" backgroundColor="white">
              <mx:ViewStack width="100%" height="100%">
                  <mx:Canvas id="innerCanvas" width="100%" height="800"/>
              </mx:ViewStack>
          </mx:Canvas>
      </mx:Application>
      
      

       

      But if I comment out the viewstack and add innerCanvas directly inside outerCanvas,the scroll bar appears.

       

      Any reason why is it so?