Skip to content

Commit

Permalink
Don't use a margin when resizing LabelSlider components
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Dec 27, 2023
1 parent c051316 commit 9f8f456
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/tote_bag/juce_gui/components/widgets/LabelSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ LabelSlider::~LabelSlider()

void LabelSlider::resized()
{
const auto mainArea = getLocalBounds();
const auto margin = juce::roundToInt (mainArea.getHeight() * .01f);
auto sliderArea = mainArea.reduced (margin);
auto sliderArea = getLocalBounds();

const auto labelHeight = juce::roundToInt (sliderArea.getHeight() * .140);
const auto labelArea = sliderArea.removeFromTop (labelHeight);
Expand Down

0 comments on commit 9f8f456

Please sign in to comment.