Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Disable vertical scroll on a bi-directional scrollview

I have a bi-directional scrollview working on a Landscape mode, on orientation switch, i need to disable the vertical scroll. How do you prevent the scrollview from moving vertically?

Thanks
Daniel

— asked May 9th 2010 by Daniel Lim
  • ipad
  • scrollview
0 Comments

1 Answer

  • Answer to my own question.

    If there's method/function to set scrollview.verticalscroll = false would be easily.

    Anyway I solved my problem with contentHeight lower or equal to its wrapped content height, that prevent the vertical scrolling.

    To enable the vertical scrolling on orientation change, increase the contentHeight.

    — answered May 9th 2010 by Daniel Lim
    permalink
    1 Comment
    • Thanks. Your answer has helped me to solve issue about stop horizontal scrolling of scrollview.

      — commented May 14th 2013 by Shaun Farrell
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.