0

My requirement is to enable the scroller for an app if the height of the device is less than 1100. Here is the code for that..

 if( FlexGlobals.topLevelApplication.height < 1100)                  
                    settingsScroller.enabled=true;
                 else
                     settingsScroller.enabled=false;

But disabling the scroller disable all the items that were wrapped with it. Is there any solution for this.

Thank you in advance.

Sharath Kumar
  • 145
  • 3
  • 4
  • 11
  • please specify the type of settingsScroller ? also specify layout of SettingsScroller like i use scroller as ` ` – JK Patel May 19 '14 at 10:58
  • For which purpose Scroller is used? i can say that i use scroller for just vertical or just horizontal or both ( V & H scrolling) purpose. – JK Patel May 19 '14 at 11:05

1 Answers1

0

I think, this will be helpfull to you

            if( FlexGlobals.topLevelApplication.height < 1100)
            {                  
                settingsScroller.setStyle('horizontalScrollPolicy', 'off');
                settingsScroller.setStyle('verticalScrollPolicy', 'off');
            }
            else
            {
                settingsScroller.setStyle('horizontalScrollPolicy', 'auto');
                settingsScroller.setStyle('verticalScrollPolicy', 'auto');
            }

hope this will works.

JK Patel
  • 858
  • 8
  • 22