Bounds fix 2

This commit is contained in:
ScottLongley
2021-08-23 22:17:54 +10:00
parent 96f4f676e4
commit b8c82ec47d

View File

@@ -109,7 +109,7 @@ namespace FlaxEngine.GUI
{ {
var c = _children[i]; var c = _children[i];
c.Bounds = new Rectangle(x + TileMargin.Left, y + TileMargin.Top, itemsWidth + TileMargin.Width, itemsHeight + TileMargin.Height); c.Bounds = new Rectangle(x + TileMargin.Left, y + TileMargin.Top, itemsWidth, itemsHeight);
x += itemsWidth + TileMargin.Width; x += itemsWidth + TileMargin.Width;
if (x + itemsWidth + TileMargin.Width > width) if (x + itemsWidth + TileMargin.Width > width)