From 90f9af3e2fa662d07ff3f267a72c26eb14fde4f9 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 30 Jan 2020 08:52:22 +0000 Subject: [PATCH] Fixed a positioning bug in SidePanel::calculateBoundsInParent() --- modules/juce_gui_basics/layout/juce_SidePanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {