1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 04:53:29 +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:
Ell 2023-05-26 23:08:45 +02:00
parent 34cb5210b5
commit f5f925fab3

View file

@ -136,6 +136,7 @@ namespace MLEM.Ui.Elements {
// 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 (this.System != null)
this.ScrollSetup();
}