Skip to main content
shark
Associate III
March 1, 2020
Solved

ScrollList scroll over bottom

  • March 1, 2020
  • 2 replies
  • 729 views

For example, I have a ScrollList with visible rows of 10, and have 20 rows(number 1 to number 20) content inside it, not circular. When scroll up, it will show row numer 20 at top and 9 empty row space.

What I expect should be, it shows row 11 to row 20 in visible space, and can NOT scroll up further.

The widget is open sourced, but looks compliated. How to patch it?

This topic has been closed for replies.
Best answer by PBull

Hi,

no need to patch it, something like this should work:

scrollList.setNumberOfItems(20);

scrollList.setWindowSize(10);

Greetings,

Peter

2 replies

PBull
PBullBest answer
Associate II
March 1, 2020

Hi,

no need to patch it, something like this should work:

scrollList.setNumberOfItems(20);

scrollList.setWindowSize(10);

Greetings,

Peter

shark
sharkAuthor
Associate III
March 2, 2020

Yes, it works perfectly.