Fix Vertical/Horizontal panels issue with anchored child controls

#378
This commit is contained in:
Wojtek Figat
2021-03-23 09:24:56 +01:00
parent fad1e6fdfc
commit e8c9856665
3 changed files with 8 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ namespace FlaxEngine.GUI
for (int i = 0; i < _children.Count; i++)
{
Control c = _children[i];
if (c.Visible)
if (c.Visible && Mathf.IsZero(c.AnchorMin.X) && Mathf.IsZero(c.AnchorMax.X))
{
c.Width = w;
}