mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
fixed an exception when a panel that is not currently part of a ui has a child removed (since 3127ad5
)
This commit is contained in:
parent
34cb5210b5
commit
f5f925fab3
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ namespace MLEM.Ui.Elements {
|
||||||
|
|
||||||
// when removing children, our scroll bar might have to be hidden
|
// when removing children, our scroll bar might have to be hidden
|
||||||
// if we don't do this before adding children again, they might incorrectly assume that the scroll bar will still be visible and adjust their size accordingly
|
// if we don't do this before adding children again, they might incorrectly assume that the scroll bar will still be visible and adjust their size accordingly
|
||||||
this.ScrollSetup();
|
if (this.System != null)
|
||||||
|
this.ScrollSetup();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
Loading…
Reference in a new issue