mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
fixed hidden panels trying to update, causing a crash
This commit is contained in:
parent
78049c9cd8
commit
6c03ef2bd9
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ namespace MLEM.Ui.Elements {
|
|||
/// Prepares the panel for auto-scrolling, creating the render target and setting up the scroll bar's maximum value.
|
||||
/// </summary>
|
||||
protected virtual void ScrollSetup() {
|
||||
if (!this.scrollOverflow)
|
||||
if (!this.scrollOverflow || this.IsHidden)
|
||||
return;
|
||||
// if there is only one child, then we have just the scroll bar
|
||||
if (this.Children.Count == 1)
|
||||
|
|
Loading…
Reference in a new issue