Bounds fix

This commit is contained in:
ScottLongley
2021-08-23 22:06:28 +10:00
parent 8136d2823f
commit 96f4f676e4

View File

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