1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-23 01:44:22 +00:00

Fixed an issue where sliders would draw incorrectly in LookAndFeel4 if the slider's value text box was placed above the slider

This commit is contained in:
hogliux 2017-08-30 16:22:12 +01:00
parent 43ccf26b91
commit da30211b19

View file

@ -943,7 +943,7 @@ void LookAndFeel_V4::drawLinearSlider (Graphics& g, int x, int y, int width, int
const auto trackWidth = jmin (6.0f, slider.isHorizontal() ? height * 0.25f : width * 0.25f);
const Point<float> startPoint (slider.isHorizontal() ? x : width * 0.5f,
slider.isHorizontal() ? height * 0.5f : height + y);
slider.isHorizontal() ? y + height * 0.5f : height + y);
const Point<float> endPoint (slider.isHorizontal() ? width + x : startPoint.x,
slider.isHorizontal() ? startPoint.y : y);