2 Replies Latest reply on May 11, 2010 8:07 AM by tehxike1

    Scrolling Issues

    tehxike1 Level 1

      I want my application to take up as much width/height as possible, but have a minimum height as well.  If the user resizes the application below this height, I want scroll bars to appear.  I thought I could do this with this code, but it doesn't work at all:


      <s:Scroller width="100%" height="100%">
          <s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="700"/>


      I can set minHeight to be anything, and there's never a difference.  What do I need to do to pull this off?

        • 1. Re: Scrolling Issues
          TeotiGraphix Level 3



          It seems as though the calculations take the Group's content minHeight into account. I havn't looked at the implementation but, the below does produce scrollbars.


              <s:Scroller width="100%" height="100%">
                  <s:Group id="contentGrdoup" width="100%" height="100%" minWidth="0" >
                      <s:Button width="100%" height="100%" minHeight="200"/>


          What does this mean? You need to se the minHeight on the content of the group, not the group itself.



          • 2. Re: Scrolling Issues
            tehxike1 Level 1

            Thanks- that got it for me.  Seems weird to need an extra level to make minHeight work.