Hey, I’m on windows and currently on the JUCE commit ae2378e from 13th july.
In my current project I have these lines in the editor’s constructor:
const auto& user = *audioProcessor.state.props.getUserSettings();
const auto editorWidth = user.getIntValue("EditorWidth", EditorWidth);
const auto editorHeight = user.getIntValue("EditorHeight", EditorHeight);
setOpaque(true);
setResizable(true, true);
setSize(editorWidth, editorHeight);
And these in resized:
auto& user = *audioProcessor.state.props.getUserSettings();
const auto editorWidth = getWidth();
const auto editorHeight = getHeight();
user.setValue("EditorWidth", editorWidth);
user.setValue("EditorHeight", editorHeight);
I am saving and loading width and height values in the xml file of the ApplicationProperties so that the plugin remembers its desired bounds for all instances to come.
But lately I noticed that my plugin keeps shrinking the more I reopen the interface and I was wondering why, so I put breakpoints into the constructor and resized and noticed something strange happening. Every time I load up the plugin it calls resized twice, but the 2nd time it is called, both getWidth() and getHeight() return their values minus exactly 6 pixels. That’s why the plugin is getting smaller and smaller. Unfortunately I can not figure out why this is happening, because the callstack goes back into some lowlevel JUCE code.
The only thing I was able to find out was that somewhere in the callstack this bool called “wasMoved” was true, triggering all this stuff. But why was it true? I didn’t use code to move the interface and also didn’t affineTransform it or anything

