diff --git a/modules/juce_gui_basics/layout/juce_SidePanel.cpp b/modules/juce_gui_basics/layout/juce_SidePanel.cpp index 01ec91d515..dfd36a45c9 100644 --- a/modules/juce_gui_basics/layout/juce_SidePanel.cpp +++ b/modules/juce_gui_basics/layout/juce_SidePanel.cpp @@ -159,7 +159,8 @@ void SidePanel::paint (Graphics& g) : shadowArea.getTopLeft()).toFloat(), false)); g.fillRect (shadowArea); - g.excludeClipRegion (shadowArea); + g.reduceClipRegion (getLocalBounds().withTrimmedRight (shadowArea.getWidth()) + .withX (isOnLeft ? 0 : shadowArea.getWidth())); g.fillAll (bgColour); }