Results 1 to 2 of 2

Thread: Automatically set scrolling:true when needed?

  1. #1
    Sencha User
    Join Date
    Dec 2013
    Posts
    5
    Answers
    1

    Default Automatically set scrolling:true when needed?

    Hello

    Is it possible to have Sencha set scrolling to true/false automatically when needed?

    If scrolling is true, content which fits inside the window is scrollable, although there's nothing else to scroll to. I think you lose a lot of the native app feel with this.

    If scrolling is false, any content which falls outside the window is inaccessible.

    Ideally, on any device (therefore any window dimensions), panels could enable/disable scrolling when needed.

    Is this currently possible?

    Thanks

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    You would have to get the height of the content and then use the setScrollable method to toggle scrolling on/off
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •