From 2353e01bd6870bf411fa7aeb2a8f37c8ced17c7a Mon Sep 17 00:00:00 2001 From: Jose Diaz Date: Wed, 17 Apr 2024 20:57:20 +0200 Subject: [PATCH] fixup! Adjust bottom row border and panel to spec --- src/gui/panels/ValentineCenterPanel.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gui/panels/ValentineCenterPanel.cpp b/src/gui/panels/ValentineCenterPanel.cpp index 5a16ee23..ee058262 100644 --- a/src/gui/panels/ValentineCenterPanel.cpp +++ b/src/gui/panels/ValentineCenterPanel.cpp @@ -76,12 +76,7 @@ void CenterPanel::resized() bottomRowBorder = bottomRowArea.withY (bottomRowBorderY).withHeight (bottomRowBorderHeight); - const auto bottomPanelHeight = bottomRowBorderHeight * .75f; - const auto bottomPanelY = bottomRowBorder.getCentreY() - bottomPanelHeight / 2; - - bottomRow.setBounds (bottomRowBorder.reduced (juce::roundToInt (margin), 0) - .withY (bottomPanelY) - .withHeight (bottomPanelHeight)); + bottomRow.setBounds (getPanelBounds (bottomRowBorder, juce::roundToInt (margin))); } } // namespace tote_bag } // namespace valentine