[Solved] StandaloneFilterWindow uses too small SettingsComponent window


#1

The Audio/MIDI Settings window shown by the StandaloneFilterWindow class is too small, resulting in the “Active MIDI inputs” section not being fully visible.

See the attached screenshot.
AudioMidiSettingsTooSmall

It could need another 100 px of height in the highlighted code:

juce_StandaloneFilterWindow.h:240

/** Shows an audio properties dialog box modally. */
void showAudioSettingsDialog()
{
    DialogWindow::LaunchOptions o;

    auto totalInChannels  = processor->getMainBusNumInputChannels();
    auto totalOutChannels = processor->getMainBusNumOutputChannels();

    if (channelConfiguration.size() > 0)
    {
        auto defaultConfig = channelConfiguration.getReference (0);
        totalInChannels  = defaultConfig.numIns;
        totalOutChannels = defaultConfig.numOuts;
    }

    o.content.setOwned (new SettingsComponent (*this, deviceManager,
                                                      totalInChannels,
                                                      totalInChannels,
                                                      totalOutChannels,
                                                      totalOutChannels));
    o.content->setSize (500, 450); // <-- too small, 550 is better height

    o.dialogTitle                   = TRANS("Audio/MIDI Settings");
    o.dialogBackgroundColour        = o.content->getLookAndFeel().findColour (ResizableWindow::backgroundColourId);
    o.escapeKeyTriggersCloseButton  = true;
    o.useNativeTitleBar             = true;
    o.resizable                     = false;

    o.launchAsync();
}

#2

Thanks for reporting!

A fix will appear on the develop branch shortly.