Skip to main content
Associate
Solved

Scroll list, control how far the last element is scrolled.

Hi

I've added a scroll list with 10 elements to my view. It works without issues but I would like to change how far it scrolls.

When I scroll up, the list stops when the last element has reached the top of the area. I would like the scroll to stop as soon as the last element is fully visible at the bottom of the area. Is this possible?

If I use a scrollable container I can get this behavior, but I would like to use a list.

/Henrik

This topic has been closed for replies.
ST Employee

Hello @Henrik76 ,

Unfortunately, it is not possible to have similar behavior as Scroll Container because Scroll List uses animations and requires different handling. However, you can use Padding Before to force covering the space at the end, but then you will have space at the beginning. 
I hope this helps you, don't hesitate to ask more questions.

Mohammad MORADIST Software Developer | TouchGFX

3 replies

ST Employee

Hello @Henrik76 ,

Unfortunately, it is not possible to have similar behavior as Scroll Container because Scroll List uses animations and requires different handling. However, you can use Padding Before to force covering the space at the end, but then you will have space at the beginning. 
I hope this helps you, don't hesitate to ask more questions.

Mohammad MORADIST Software Developer | TouchGFX
Henrik76Author
Associate

Thank you for the quick reply.

I will have to make do with the scroll container.

/henrik

ST Employee

You're very welcome, 

Good luck

Mohammad MORADIST Software Developer | TouchGFX