I've found a strange behaviour when internally resizing VST plugin in Reaper x64 OSX. I am able to replicate it in JuceDemoPlugin as well with a few additional lines of code. Note, that with Reaper on Windows everything works as expected.
Starting timer in plugin constructor:
and resizing plugin inside timer callback
stopTimer(); setSize (getWidth(), getHeight() + 100);
Using standard Reaper FX window ...
- when loaded, plugin is opened and correctly resized for the first time
- if i close and reopen editor, plugin GUI is initially displayed at the correct position BUT ...
- when resize is triggered, plugin completely looses its position - it is misplaced somewhere in the middle of the Reaper FX window and only a part of it is displayed ...
- resizing Reaper FX window with a mouse reveals complete plugin, but retains misplaced position ...
I am not sure if this is Reaper's or JUCE's problem ... if plugin is opened in floating window, everything works correctly, so this one really looks like it is on Reaper's side. I've tried to load it in Nuendo 6.5 and NebulaMan (both use floating windows for plugins) and they both work ok.
Any ideas or suggestions would be greatly appreciated !!! Did anyone experience this kind of behaviour ?
Resizing of AU version of the plugin works as expected, both in Reaper and Logic X.