瀏覽代碼

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

AzaezelX 1 年之前
父節點
當前提交
905139f500
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/gui/containers/guiWindowCtrl.cpp

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