1 Reply Latest reply on Jul 23, 2011 1:20 PM by Shongrunden

    Scroller resize on orientation change (mobile project)

    ChristophFlex Level 1

      Hi everyone,

       

      in my app the spark scroller doesn't resize correctly in the landscape mode. Seems like the the actionBar height isnt considered correctly. I cant scroll to the bottom of my view.

       

      <s:Scroller width="100%" height="100%" id="scroller">
          <s:VGroup  width="100%" height="100%">

       

           ......

       

         </s:VGroup>

      </s:Scroller>

       

      changing the scroller height to:

      height="{this.height}"

       

      completely disables the ability to scroll.

       

       

      finally i changed the scoller-height to this, calculating the height of the view myself and and now it works fine

      height="{(navigator.height-navigator.actionBar.height)}"

       

       

      Is there a better solution for this problem or maybe did i something wrong there?