From 854dfeffcdfbed7da377e59965595a7c9555d30a Mon Sep 17 00:00:00 2001 From: Jose Diaz Date: Wed, 17 Apr 2024 20:05:14 +0200 Subject: [PATCH] squash with the changes it is reverting --- src/gui/panels/ValentineTopRowPanel.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gui/panels/ValentineTopRowPanel.cpp b/src/gui/panels/ValentineTopRowPanel.cpp index 1e64c461..8bb09be7 100644 --- a/src/gui/panels/ValentineTopRowPanel.cpp +++ b/src/gui/panels/ValentineTopRowPanel.cpp @@ -55,13 +55,7 @@ void TopRowPanel::resized() { auto bounds = getLocalBounds(); - const auto slidersAreaHeight = juce::roundToInt (bounds.getHeight() * .95f); - const auto slidersAreaY = bounds.getCentreY() - slidersAreaHeight / 2; - - auto sliders = bounds.removeFromLeft (juce::roundToInt (bounds.getWidth() * .65f)) - .withY (slidersAreaY) - .withHeight (slidersAreaHeight); - + auto sliders = bounds.removeFromLeft (juce::roundToInt (bounds.getWidth() * .65f)); const auto buttonWidth = juce::roundToInt (sliders.getWidth() * .033f); const auto adjustedComponentWidth = sliders.getWidth() - (buttonWidth * 2.0f); const auto sliderWidth = juce::roundToInt (adjustedComponentWidth / 3.0f);