Painting outside component bounds

Hi everyone,


I've been going over an old JUCE project and found a bug that I still don't know how to fix.


I have a Component which is basically an oscilloscope class. The current behavior is that if the amplitude of the waveform exceeds the bounding box of the Component, painting is clipped (which seems to be what JUCE does by default). However, for the specific application I have in mind, I really want the waveform amplitude to go outside the bounding box of the Component, if possible.


Does JUCE allow for painting outside the bounding box of its Component, or should I just create a larger Component?

This would be very helpful to know.


No, everything within a component is always clipped to its bounds. You'd need to just make it bigger.