make const RectI GuiWindowCtrl::getClientRect() respect ResizeMargin for sub elements

This commit is contained in:
AzaezelX 2023-12-29 12:55:28 -06:00
parent ea63a7448e
commit 905139f500

View file

@ -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;
}