From a572e581e5614da8a2a58a6c59ef2c8222b2daa9 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 3 Feb 2021 21:30:33 +0100 Subject: [PATCH] Fix HorizontalPanel children layout Fixes 191 --- Source/Engine/UI/GUI/Panels/HorizontalPanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/UI/GUI/Panels/HorizontalPanel.cs b/Source/Engine/UI/GUI/Panels/HorizontalPanel.cs index 8f8e7f994..53e435f91 100644 --- a/Source/Engine/UI/GUI/Panels/HorizontalPanel.cs +++ b/Source/Engine/UI/GUI/Panels/HorizontalPanel.cs @@ -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; }