VST resizing issue in DAW

My code is as follows:
setResizable(true, true);
setResizeLimits(500, 300, 2000, 1200);
setSize(1000, 600);

If I grab the VST window by the corner, but not by the CornerResizer component the thing in the picture happens (ignore the pixelation). The plugin is not resized, just the window it sits in. The rest is white+black.

Is this standard behavior? Is there a way around this?

More info there, but no solution

Thank you. I was searching the forum for “resize” keyword but as you can imagine I got too many results and didn’t see this post. Well at least now I know what my options are :slight_smile: