Skip to content

Commit

Permalink
Don't use clip button width to find nudge amount
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Apr 22, 2024
1 parent 9eb2774 commit f9ca666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/panels/ValentineBottomRowPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f9ca666

Please sign in to comment.