Issue resizing in AU with JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS

Hi

On Juce dev I am seeing an issue resizing windows with AUv2 plugins when JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS is used.

VST3 is ok.

Juce 7.0.5 is ok. I know there have been a few commits to dev in this area so I expect it could simply be a side effect of those changes.

I have prepared a small video to illustrate the problem which is that the window is not painting correctly after resizing. When adjusting height the content shows at the wrong position (but mouse-over and clicking works at the ‘correct’ position; i.e. not where it is being painted but where you would expect it to be had the content been painted in the correct position). When adjusting width the sides can be cut off.

Edit: video removed as a candidate fix has been sugegsted.

I’m simply calling setSize in the button listener callback of a new plugin project.

This affects the AU in Logic (10.7.8) and Reaper on Ventura 13.4.1.

Matt

1 Like

For me, removing layer.autoresizingMask = kCALayerHeightSizable | kCALayerWidthSizable; at NSViewComponentPeer_mac.mm:2131 seems to resolve the issue. Please could you try that and let me know if the problem is solved?

1 Like

Thanks, this has done the trick.

1 Like

That was added here:

Thank you for this update.