mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-10-31 21:00:51 +01:00
further improved auto-hiding loop detection
This commit is contained in:
parent
95b28c6039
commit
5e2f48db9d
1 changed files with 4 additions and 1 deletions
|
@ -114,11 +114,14 @@ namespace MLEM.Ui.Elements {
|
|||
if (child != this.ScrollBar && !child.Anchor.IsAuto())
|
||||
throw new NotSupportedException($"A panel that handles overflow can't contain non-automatic anchors ({child})");
|
||||
}
|
||||
}
|
||||
|
||||
base.ForceUpdateArea();
|
||||
if (this.scrollOverflow) {
|
||||
for (var i = 0; i < this.scrollBarMaxHistory.Length; i++)
|
||||
this.scrollBarMaxHistory[i] = -1;
|
||||
}
|
||||
base.ForceUpdateArea();
|
||||
|
||||
this.SetScrollBarStyle();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue