Is Cubase sending garbage values in IPlugView::checkSizeConstraint?

I’m running Cubase 14.0.41,

When I resize my VST3 plugin window, I can see Cubase is regularly passing ViewRect{0, 0, 234, 0} inside IPlugView::checkSizeConstraint. It happens when resizing from every corner and edge of the window. It appears to trigger consistently every time the mouse is released, but also several times during the resize.

The width equal to 234 and height equal to zero is consistent.

Is this intentional? It looks like a bug.

It’s easy to evade by checking if the height equals zero, and returning a failure. Should I not be evading this?

Hi, the documentation for checkSizeConstraints says:

On live resize this is called to check if the view can be resized to the given rect, if not adjust the rect to the allowed size

Therefore, modify the rectangle’s dimensions to a size that your editor supports.

Is sending a rectangle with a width of 234px and no height intentional or not?

It doesn’t really matter. You have to follow the documentation. If your minimal editor size is (100, 110), then you should set the rectangle input parameter to (left = 0, top = 0, right = 100, bottom = 110).

It might matter in your case if you get hit with bug reports

But according to the documentation this is allowed and not a bug.