Skip to content

Commit

Permalink
Correctly adjust basic bottom row placement for button
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Dec 28, 2023
1 parent f415f7a commit 6429b43
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/panels/ValentineCenterPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ void CenterPanel::resized()

auto bottomRowComponents = bottomRowBorder.reduced (margin);

auto bottomRowSliderWidth = juce::roundToInt (bottomRowComponents.getWidth() / 6.0f);
const auto bottomRowButtonWidth = juce::roundToInt (bottomRowSliderWidth * .10f);
const auto bottomRowButtonWidth =
juce::roundToInt (bottomRowComponents.getWidth() / 60.0f);
const auto adjustedBottomRowComponentsWidth =
bottomRowComponents.getWidth() - bottomRowButtonWidth;
const auto bottomRowSliderWidth =
juce::roundToInt (adjustedBottomRowComponentsWidth / 6.0f);

const auto borderSpacer = bottomRowSliderWidth;

Expand Down

0 comments on commit 6429b43

Please sign in to comment.