Do Sliders have automatic padding?

I’m working on a GUI and using the Slider getPositionOfValue() function. It seems to return “10” when the slider thumb is all the way to the left, and a value 10 less than the slider width when the thumb is all the way to the right. Any reason why this is so?

Yes, that is needed so you can draw a thumb without cropping it, when it is moved all the way up or down.

EDIT: the information you are looking for is the sliderBounds in the SliderLayout, to change it override getSliderLayout() in your LookAndFeel

got it, thanks!