mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
make const RectI GuiWindowCtrl::getClientRect() respect ResizeMargin for sub elements
This commit is contained in:
parent
ea63a7448e
commit
905139f500
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue