From 2e8b09b3eb0c73c79c8096ce2c7982e1dfdc5cfc Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 8 May 2014 19:18:10 +0100 Subject: [PATCH] VST3 window size fix. --- .../format_types/juce_VST3PluginFormat.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index 658fb2a000..40754826a7 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -1502,6 +1502,11 @@ public: { rect.right = (Steinberg::int32) getWidth(); rect.bottom = (Steinberg::int32) getHeight(); + view->checkSizeConstraint (&rect); + + setSize ((int) rect.getWidth(), + (int) rect.getHeight()); + view->onSize (&rect); } else