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.