Skip to main content
shark
Associate III
Mar 1, 2020 12:41 PM UTC
Solved

ScrollList scroll over bottom

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.
PBull
PBullBest answer
Associate II
Mar 1, 2020 1:12 PM UTC

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
Mar 1, 2020 1:12 PM UTC

Hi,

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

scrollList.setNumberOfItems(20);

scrollList.setWindowSize(10);

Greetings,

Peter

shark
sharkAuthor
Associate III
Mar 2, 2020 1:09 AM UTC

Yes, it works perfectly.