From 905139f50029a9ed0f6ea633c3d3f7b982272ab0 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Fri, 29 Dec 2023 12:55:28 -0600 Subject: [PATCH] make const RectI GuiWindowCtrl::getClientRect() respect ResizeMargin for sub elements --- Engine/source/gui/containers/guiWindowCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gui/containers/guiWindowCtrl.cpp b/Engine/source/gui/containers/guiWindowCtrl.cpp index 069064355..875557a85 100644 --- a/Engine/source/gui/containers/guiWindowCtrl.cpp +++ b/Engine/source/gui/containers/guiWindowCtrl.cpp @@ -1492,7 +1492,7 @@ const RectI GuiWindowCtrl::getClientRect() // Finally, inset it by padding // Inset by padding. margin is specified for all t/b/l/r but // uses only pointx pointy uniformly on both ends. This should be fixed. - JDD - // winRect.inset( mSizingOptions.mPadding.point.x, mSizingOptions.mPadding.point.y ); + winRect.inset(mResizeMargin, mResizeMargin); return winRect; }