Skip to main content
Associate
August 3, 2026
Question

Can't the ScrollWheel set components of different heights?

  • August 3, 2026
  • 1 reply
  • 29 views

I want to make the CustomScrollTimeTextCenter fully visible, without being cut off by anything else, and without leaving any extra gaps.
But it's this kind of effect, I've tried adjusting all sorts of parameters, and I still can't get the effect I want.
I want this kind of effect:


Here's an introduction to the problem:
I have two custom components of different heights
CustomScrollTimeTextCenter 70
CustomScrollTimeText 44

 

1 reply

ST Technical Moderator
August 13, 2026

Hi,

Unfortunately the stock ScrollWhell is only implemented to handle elements that all have the same height. To get this functionality you will have to implement your own custom scroll-widget. For inspiration, you can look at the source code of the different existing scroll widgets delivered as part of TouchGFX. You can find that in your project folder in: Middlewares\ST\touchgfx\framework\source\touchgfx\containers\scrollers.

Best regards,

Peter