diff --git a/modules/juce_gui_basics/layout/juce_SidePanel.cpp b/modules/juce_gui_basics/layout/juce_SidePanel.cpp index e674a52d33..04a10dbb47 100644 --- a/modules/juce_gui_basics/layout/juce_SidePanel.cpp +++ b/modules/juce_gui_basics/layout/juce_SidePanel.cpp @@ -245,7 +245,7 @@ void SidePanel::componentMovedOrResized (Component& component, bool wasMoved, bo Rectangle SidePanel::calculateBoundsInParent (Component& parentComp) const { - auto parentBounds = parentComp.getBounds(); + auto parentBounds = parentComp.getLocalBounds(); if (isOnLeft) {