Fix HorizontalPanel children layout

Fixes 191
This commit is contained in:
Wojtek Figat
2021-02-03 21:30:33 +01:00
parent c3b36062ed
commit a572e581e5

View File

@@ -45,7 +45,7 @@ namespace FlaxEngine.GUI
if (c.Visible)
{
var w = c.Width;
c.Bounds = new Rectangle(x + _offset.X, _margin.Top + _offset.Y, h, w);
c.Bounds = new Rectangle(x + _offset.X, _margin.Top + _offset.Y, w, h);
x = c.Right + _spacing;
hasAnyItem = true;
}