2
0
Эх сурвалжийг харах

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

AzaezelX 1 жил өмнө
parent
commit
905139f500

+ 1 - 1
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;
 }