ListBox::scrollToEnsureRowIsOnscreen() Request


#1

Hi.

I accidentally bumped into this function, which really upgraded my ListBox.
One thing it is missing though, is the ability to set the speed of the scrolling to a lower one so it will scroll smoothly.

It calls viewport->scrollToEnsureRowIsOnscreen() so it probably should be a Viewport feature.

Thanks.


#2

You mean to animate the scrolling?


#3

Yep, now it uses setTopLeftPosition() which is quite brutal, it would better just scroll slowly to reveal the partially visible row.


#4

Well, that’s a feature request that I don’t have time to think about right now, I’m afraid!