This is really a duplicate of a forum post from 2018:
Since that thread never reached a satisfactory conclusion I’ll try asking again in a different way.
I have a Viewport
that displays a stack of AudioProcessorEditor sub-components. The component hierarchy looks like this:
ViewPort
- viewedComponent
-- stack component 0 (Buttons, AudioProcessorEditor)
-- stack component 1 (Buttons, AudioProcessorEditor)
-- etc.
While each stack component – and the contained Buttons – are correctly clipped by the Viewport
, the AudioProcessorEditor is not. It is drawn over the scrollbars and outside of the Viewport
’s bounds.
In the screen shots you see how the AudioProcessorEditor
(containing the text ‘Melody’) draws outside of the Viewport
, while its Button
sibling components behave as expected.
I’ve tried fiddling with the AudioProcessorEditor instances like this, but to no avail:
audioProcessorEditor->setPaintingIsUnclipped(false);
audioProcessorEditor->getPeer()->setAlwaysOnTop(false);
I’m quite new to JUCE, so I’m not sure how to continue from here.
BTW, all this happens on macOS, and the hosted plugin UIs are NSView
based, but I’m not sure it’s a mac specific issue, which is why I’m posting in General Discussion.
Thanks for any pointers,
patrick