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