1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00
This commit is contained in:
jules 2008-07-12 13:55:12 +00:00
parent 5f94c416ab
commit a4aa6e4a43

View file

@ -496,8 +496,7 @@ public:
outputChanLabel->attachToComponent (outputChanList, true);
}
outputChanList->updateContent();
outputChanList->repaint();
outputChanList->refresh();
}
else
{
@ -517,8 +516,7 @@ public:
inputChanLabel->attachToComponent (inputChanList, true);
}
inputChanList->updateContent();
inputChanList->repaint();
inputChanList->refresh();
}
else
{
@ -1032,19 +1030,10 @@ void AudioDeviceSelectorComponent::resized()
y += audioDeviceSettingsComp->getHeight() + space;
}
VoidArray boxes;
if (midiInputsList != 0)
boxes.add (midiInputsList);
const int boxSpace = getHeight() - y;
for (int i = 0; i < boxes.size(); ++i)
{
MidiInputSelectorComponentListBox* const box = (MidiInputSelectorComponentListBox*) boxes.getUnchecked (i);
const int bh = box->getBestHeight (jmin (h * 8, boxSpace / boxes.size()) - space);
box->setBounds (lx, y, w, bh);
const int bh = midiInputsList->getBestHeight (jmin (h * 8, getHeight() - y - space));
midiInputsList->setBounds (lx, y, w, bh);
y += bh + space;
}