diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index d8ebd42cf8..ebe7c36003 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -1126,10 +1126,6 @@ struct VST3PluginWindow : public AudioProcessorEditor, warnOnFailure (view->setFrame (this)); - #if JUCE_MAC - resizeToFit(); - #endif - Steinberg::IPlugViewContentScaleSupport* scaleInterface = nullptr; view->queryInterface (Steinberg::IPlugViewContentScaleSupport::iid, (void**) &scaleInterface); @@ -1138,6 +1134,8 @@ struct VST3PluginWindow : public AudioProcessorEditor, pluginRespondsToDPIChanges = true; scaleInterface->release(); } + + resizeToFit(); } ~VST3PluginWindow() override diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 7afc26f9d9..2b5ca8c442 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -2776,7 +2776,10 @@ public: activeVSTWindows.add (this); - setSize (1, 1); + Vst2::ERect* rect = nullptr; + dispatch (Vst2::effEditGetRect, 0, 0, &rect, 0); + setSize (rect->right - rect->left, rect->bottom - rect->top); + setOpaque (true); setVisible (true); }