0 Replies Latest reply on Dec 11, 2011 11:23 PM by Abhinav Sharma

    Scrollers NOT Working when setting minHeight and minWidth

    Abhinav Sharma Level 2

      Hi, I am currently struggling with this issue.

       

      I have a below application where I set minHeight & minWidth property for my application. Now when I am resizing window to a lower size I should see the scrolls. But somehow they are not coming.

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application 
           width="100%" height="100%"
          minWidth="955" minHeight="600"
          xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx">
          <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:Rect width="100%" height="100%">
              <s:fill>
                  <s:SolidColor color="0xCCCCFF"/>
              </s:fill>
          </s:Rect>
          <s:VGroup 
              width="100%" height="100%"
              horizontalAlign="center"
              verticalAlign="middle">
              <s:Label 
                  fontSize="14"
                  fontWeight="bold"
                  text="This is a long one line text. You may need to scroll. Its your luck if you are able to scroll. - Flex 4"/>
          </s:VGroup>
      </s:Application>
      

      with_scroll.JPG

      How ever if I only set the width & height of my application to some specific value i.e.

       <s:Application width="955" height="600" .../>

      Scrolls start working.

      without_scroll.JPG

       

      Please help me how can I get scrolls on my application.

       

      Thanks.

       

      -

      abhinav