mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
added a method to remove all children from an element
This commit is contained in:
parent
3f66430d90
commit
0ad17fc40c
1 changed files with 6 additions and 0 deletions
|
@ -178,6 +178,12 @@ namespace MLEM.Ui.Elements {
|
||||||
this.SetAreaDirty();
|
this.SetAreaDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void RemoveChildren() {
|
||||||
|
for (var i = this.Children.Count - 1; i >= 0; i--) {
|
||||||
|
this.RemoveChild(this.Children[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void SetAreaDirty() {
|
public void SetAreaDirty() {
|
||||||
this.areaDirty = true;
|
this.areaDirty = true;
|
||||||
if (this.Anchor >= Anchor.AutoLeft && this.Parent != null)
|
if (this.Anchor >= Anchor.AutoLeft && this.Parent != null)
|
||||||
|
|
Loading…
Reference in a new issue