Skip to content

Commit

Permalink
slight refactor of label stuff in labelslider
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Jan 7, 2024
1 parent 59ab172 commit 0b1a771
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/tote_bag/juce_gui/components/widgets/LabelSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ void LabelSlider::resized()
const auto margin = sliderArea.getHeight() * .03f;

const auto labelHeight = juce::roundToInt (sliderArea.getHeight() * .120);
const auto labelArea = sliderArea.removeFromTop (labelHeight);
label.setBounds (sliderArea.removeFromTop (labelHeight));

sliderArea.removeFromTop (margin);

slider.setBounds (sliderArea);
label.setBounds (labelArea);
}

0 comments on commit 0b1a771

Please sign in to comment.