HSlider Grabber Not Going to End of Right Side

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bribat123

I am using the HSlider control and I added my own texture for the grabber and slider track.

I have discovered that the grabber is not able to be dragged all the way to the right side of the track. How can this be fixed so I can drag the grabber all the way to the end of the right side?

Thanks!

can you show picture

supper_raptor | 2020-04-03 13:26

Found the same problem, here’s a screenshot Imgur: The magic of the Internet
One is 100%, the other is 0%. Neither go to the end.

mauriciomarinho | 2020-05-28 02:33

:bust_in_silhouette: Reply From: SaintKerrigan

You need to remove any transparency padding surrounding the grabber image and the grabber highlight image.

The width of the slider incorporates the widths of those two images, so if there’s any transparency then that affects the total width. This is what makes the grabber look like it isn’t going all the way to the end.

(I sometimes also need to set the grow_begin and/or grow_end properties of the StyleBoxLine resources because it throws in an extra pixel, but that is probably not an issue if you are using your own texture.)