From 4ac47ac8afc50c830d1eb378929ae9cfd726de6e Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 2 Jan 2018 09:53:06 +0000 Subject: [PATCH] Fixed a layout bug in the Projucer GUI tool --- .../ComponentEditor/UI/jucer_RelativePositionedRectangle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/Projucer/Source/ComponentEditor/UI/jucer_RelativePositionedRectangle.h b/extras/Projucer/Source/ComponentEditor/UI/jucer_RelativePositionedRectangle.h index 1651124a28..3c82b60837 100644 --- a/extras/Projucer/Source/ComponentEditor/UI/jucer_RelativePositionedRectangle.h +++ b/extras/Projucer/Source/ComponentEditor/UI/jucer_RelativePositionedRectangle.h @@ -411,8 +411,8 @@ public: */ bool isPositionAbsolute() const noexcept { - return xMode == absoluteFromParentTopLeft - && yMode == absoluteFromParentTopLeft + return (xMode & ~anchorAtLeftOrTop) == absoluteFromParentTopLeft + && (yMode & ~anchorAtLeftOrTop) == absoluteFromParentTopLeft && wMode == absoluteSize && hMode == absoluteSize; }