2 Replies Latest reply on Aug 31, 2010 7:16 AM by Antoine Alberti

    Min sizes for Scroller

    Antoine Alberti

      Hi,

      I'm trying to get scrollbars on my application when the screen size is below the minimal size. But I can't manage to make the scrollbars appear. I'm using sdk 4.1. I made a very simple app to test what was happening:

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:kapit="fr.kapit.*" height="100%" width="100%" >
          <fx:Declarations>
              <kapit:KapInspect id="ki"/>
          </fx:Declarations>
          <s:layout>
              <s:VerticalLayout/>
          </s:layout>
         
          <s:Rect height="30" width="100%" id="header">
              <s:fill>
                  <s:SolidColor color="0x000000"/>
              </s:fill>
          </s:Rect>
         
          <s:Scroller id="bodyScroll" width="100%" height="100%">
              <s:Group id="body" width="100%" height="100%" minWidth="1000" minHeight="600" clipAndEnableScrolling="true">
                  <s:layout>
                      <s:VerticalLayout/>
                  </s:layout>
                  <s:Button label="KI" click="ki.showPopup()"/>
                  <s:Rect width="100%" height="100%">
                      <s:fill>
                          <s:SolidColor color="0xDCDCDC"/>
                      </s:fill>
                  </s:Rect>
              </s:Group>   
          </s:Scroller>
         
      </s:Application>

       

      In KapInspect, when I decrease the size of my browser, I can see that the Group's minHeight is 600, and its height 533... Which makes the scroller never to appear.

       

      Does anybody please have a clue? What should I modify to get my scroll bars?

       

      Thanks

      Antoine Alberti