I’m making some waqcky big sliders for touchscreen use. Problem is, they seem to get very small when I increase the sliderthumb size (in a look and feel class).
Am I the only one making big sliders and to run into this?
The problem seems to be that the slider does this:
const int indent = getLookAndFeel().getSliderThumbRadius (*this) + 2;
Which seems redundant, since another set of code then makes sure the slider and thumb draw within the slider rect. So this may have been there a while? I’m guessing that this:
int LookAndFeel::getSliderThumbRadius (Slider& slider)
return jmin (7,
slider.getHeight() / 2,
slider.getWidth() / 2);
has forced it to ‘7’ for a while.
Jules, can we ‘fix’ this? Would it break anything else? Seems like the ‘7’ is just working as a hard-coded minimum amount of breathing room around the slider. If in Slider::resized we set an indent (used to inset the slider itself) then the demo seems OK but my app overlaps:
What would the real fix be?