From f9ca666c0395fce60d88b3c842769af0d5a28dd7 Mon Sep 17 00:00:00 2001 From: Jose Diaz Date: Mon, 22 Apr 2024 22:03:00 +0200 Subject: [PATCH] Don't use clip button width to find nudge amount --- src/gui/panels/ValentineBottomRowPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/panels/ValentineBottomRowPanel.cpp b/src/gui/panels/ValentineBottomRowPanel.cpp index fba91ce7..25c30be0 100644 --- a/src/gui/panels/ValentineBottomRowPanel.cpp +++ b/src/gui/panels/ValentineBottomRowPanel.cpp @@ -83,7 +83,7 @@ void BottomRowPanel::resized() .withX (dividerCentreX) .withWidth (dividerThickness); - const auto buttonNudge = juce::roundToInt (clipButtonWidth / 8.0f); + const auto buttonNudge = juce::roundToInt (sliderWidth / 14.0f); const auto clipButtonInitialX = bounds.getX(); const auto clipButtonX = clipButtonInitialX + buttonNudge;