Selaa lähdekoodia

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

AzaezelX 1 vuosi sitten
vanhempi
commit
905139f500
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
    // Finally, inset it by padding
    // Inset by padding.  margin is specified for all t/b/l/r but 
    // 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
    // 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;
    return winRect;
 }
 }