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:
parent
2741682029
commit
3e20aaf6c5
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue