I am not a C# compiler.

This commit is contained in:
Menotdan
2023-10-10 12:46:49 -04:00
parent e273433d19
commit 075da66344

View File

@@ -248,12 +248,12 @@ namespace FlaxEditor.Surface
} }
else else
{ {
if (control.AnchorPreset == AnchorPresets.TopLeft) if (child.AnchorPreset == AnchorPresets.TopLeft)
{ {
width = Mathf.Max(width, boxSize.X); width = Mathf.Max(width, boxSize.X);
height = Mathf.Max(height, boxSize.Y); height = Mathf.Max(height, boxSize.Y);
} }
else if (!_headerRect.Intersects(control.Bounds)) else if (!_headerRect.Intersects(child.Bounds))
{ {
width = Mathf.Max(width, boxSize.X); width = Mathf.Max(width, boxSize.X);
height = Mathf.Max(height, boxSize.Y); height = Mathf.Max(height, boxSize.Y);