diff --git a/src/gui/panels/ValentineCenterPanel.cpp b/src/gui/panels/ValentineCenterPanel.cpp index a16331d8..2a0aaf8a 100644 --- a/src/gui/panels/ValentineCenterPanel.cpp +++ b/src/gui/panels/ValentineCenterPanel.cpp @@ -49,14 +49,18 @@ void CenterPanel::resized() juce::roundToInt (margin * 1.3f)); const auto topRowArea = localBounds.removeFromTop (localBounds.getHeight() * .50f); - const auto topPanelHeight = juce::roundToInt (topRowArea.getHeight() * .88f); - const auto topPanelY = topRowArea.getCentreY() - topPanelHeight / 2; + const auto topRowBorderHeight = juce::roundToInt (topRowArea.getHeight() * .88f); + const auto topRowBorderY = topRowArea.getCentreY() - topRowBorderHeight / 2; - topRowBorder = topRowArea.withY (topPanelY).withHeight (topPanelHeight); + topRowBorder = topRowArea.withY (topRowBorderY).withHeight (topRowBorderHeight); borderLineThickness = topRowBorder.getHeight() * .005f; borderCornerSize = topRowBorder.getHeight() * .060f; - topRow.setBounds (topRowBorder.reduced (juce::roundToInt (margin))); + const auto topPanelHeight = topRowBorderHeight * .725f; + const auto topPanelY = topRowBorder.getCentreY() - topPanelHeight / 2; + topRow.setBounds (topRowBorder.reduced (juce::roundToInt (margin), 0) + .withY (topPanelY) + .withHeight (topPanelHeight)); localBounds.removeFromTop (margin);