Don't update MarginContainer if it already matches its parent size, update TestGame.

This commit is contained in:
2025-06-29 17:39:52 +02:00
parent 87e0a69dcf
commit 09c24e7123
2 changed files with 31 additions and 18 deletions

View File

@@ -65,7 +65,10 @@ public class MarginContainer : Container
base.OnUpdate();
if (Parent == null) return;
Size = Parent.Size;
if (Size != Parent.Size)
{
Size = Parent.Size;
}
}
public override void Arrange()