Skip to content

Commit

Permalink
fixup! Adjust bottom row border and panel to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Apr 17, 2024
1 parent 84a7a13 commit 2353e01
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/gui/panels/ValentineCenterPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2353e01

Please sign in to comment.