diff --git a/src/gui/panels/ValentineBottomRowPanel.cpp b/src/gui/panels/ValentineBottomRowPanel.cpp index eb6a7b2f..37c2e661 100644 --- a/src/gui/panels/ValentineBottomRowPanel.cpp +++ b/src/gui/panels/ValentineBottomRowPanel.cpp @@ -101,7 +101,7 @@ void BottomRowPanel::resized() // We have to do this because the slider will otherwise intercept // button clips. - const auto outputSliderWidth = sliderWidth - buttonNudge; + const auto outputSliderWidth = sliderWidth - juce::roundToInt (buttonNudge * 2.1f); const auto outputSliderX = outputSliderArea.getCentreX() - outputSliderWidth / 2; outputSlider.setBounds ( diff --git a/src/gui/panels/ValentineTopRowPanel.cpp b/src/gui/panels/ValentineTopRowPanel.cpp index 30b35696..56a28dd6 100644 --- a/src/gui/panels/ValentineTopRowPanel.cpp +++ b/src/gui/panels/ValentineTopRowPanel.cpp @@ -80,7 +80,8 @@ void TopRowPanel::resized() // We have to do this because the slider will otherwise intercept // button clips. - const auto sliderWidth = sliderInitialWidth - buttonNudge; + const auto sliderWidth = + sliderInitialWidth - juce::roundToInt (buttonNudge * 2.1f); const auto sliderX = sliderArea.getCentreX() - sliderWidth / 2; slider.setBounds (sliderArea.withX (sliderX).withWidth (sliderWidth));