How to get a fixed height on scrollbar dragger?

Hello,

I made a custom reskin of the Scroller component and I use a dragger with a fixed width and height.

But when my Scroller is used by a ListView control, its height is updated by the control itself (forced inline style then). And I’m getting a taller dragger than it would visually be.

How can I block the height to change or let the height simply adapt to my initial dragger height?

Thank you :pray:

The ScrollView assumes the scroller works a certain way, namely, the dragger’s size depends on the amount of content there is to scroll. If similar to how most OS scroll views work. And it’s not just for looks, it actually changes how the scroller works by making it clear how much or how little it can move.

You can use 9-slicing to ensure that that dragger resizes in a way that visually matches the theme.