How to get Slider track length in pixels?

getHeight() includes the textbox. Is there a way to get just the length of the scale in pixels?

I have subclassed Slider to customize it. Which means I could measure the track length for each of my sliders and pass it to the constructor. I’d rather not do that if possible.

If you override Slider::SliderLayout LookAndFeel_V2::getSliderLayout (Slider& slider) in your LookAndFeel, you will have access to the actual slider dimensions apart from the textbox.

Thanks