Don't update MarginContainer if it already matches its parent size, update TestGame.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user