1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-24 17:29:23 +01:00

fixed auto-sized elements doing unnecessarily many area updates

This commit is contained in:
Ell 2021-03-29 05:49:09 +02:00
parent 2741682029
commit 3e20aaf6c5

View file

@ -639,7 +639,9 @@ namespace MLEM.Ui.Elements {
this.System.OnElementAreaUpdated?.Invoke(this);
foreach (var child in this.Children)
child.ForceUpdateArea();
child.SetAreaDirty();
// clear the dirty flag again in case our children just set us dirty
this.areaDirty = false;
}
}