Skip to main content
GMeur
Associate III
December 20, 2021
Question

ScrollList animateToItem() doesn't set the offset value?

  • December 20, 2021
  • 1 reply
  • 657 views

Hello,

I'm curious to know why the animateToItem() function of the scrollList doesn't set the offset member (the value that is obtained with the function getOffset() )?

I need to use that offset to be able to set up the position of a scrollBar widget that is connected to that scrollList… Any idea of what's happening ?

Thanks in advance :)

This topic has been closed for replies.

1 reply

Senior II
February 21, 2023

Any news on this question? I also want to add a custom scrollbar (line or box element) next to my ScollList to show the position to the user. There should be an API to get the current scroll offset, but there isn't.

Someone suggested to use a ScrollContainer (already has a scrollbar) and add a ListLayout to it, but this isn't a option, as my list can have several hundred items (and the ScrollList handles this very efficient).

When this account seems to be inactive, try @tdecker2 - ST can't change mail addresses, so I had to create a new account.