mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Standalone plug-in: Fixed the placement of the mute feedback option
This commit is contained in:
parent
8afcd55079
commit
507a4ed985
1 changed files with 8 additions and 10 deletions
|
|
@ -432,23 +432,21 @@ private:
|
|||
|
||||
void resized() override
|
||||
{
|
||||
auto itemHeight = deviceSelector.getItemHeight();
|
||||
auto seperatorHeight = (itemHeight >> 1);
|
||||
|
||||
auto r = getLocalBounds();
|
||||
auto extra = r.removeFromBottom (itemHeight + seperatorHeight);
|
||||
deviceSelector.setBounds (r);
|
||||
|
||||
if (owner.getProcessorHasPotentialFeedbackLoop())
|
||||
{
|
||||
auto bottom = 0;
|
||||
for (int i = 0; i < deviceSelector.getNumChildComponents(); ++i)
|
||||
bottom = jmax (bottom, deviceSelector.getChildComponent (i)->getBottom());
|
||||
auto itemHeight = deviceSelector.getItemHeight();
|
||||
auto extra = r.removeFromTop (itemHeight);
|
||||
|
||||
shouldMuteButton.setBounds (Rectangle<int> (r.proportionOfWidth (0.35f), bottom + seperatorHeight,
|
||||
r.proportionOfWidth (0.60f), deviceSelector.getItemHeight()));
|
||||
auto seperatorHeight = (itemHeight >> 1);
|
||||
shouldMuteButton.setBounds (Rectangle<int> (extra.proportionOfWidth (0.35f), seperatorHeight,
|
||||
extra.proportionOfWidth (0.60f), deviceSelector.getItemHeight()));
|
||||
|
||||
r.removeFromTop (seperatorHeight);
|
||||
}
|
||||
|
||||
deviceSelector.setBounds (r);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue