1
0
Fork 0
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:
Ell 2023-10-14 17:53:23 +02:00
parent 95b28c6039
commit 5e2f48db9d

View file

@ -114,11 +114,14 @@ namespace MLEM.Ui.Elements {
if (child != this.ScrollBar && !child.Anchor.IsAuto()) if (child != this.ScrollBar && !child.Anchor.IsAuto())
throw new NotSupportedException($"A panel that handles overflow can't contain non-automatic anchors ({child})"); 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++) for (var i = 0; i < this.scrollBarMaxHistory.Length; i++)
this.scrollBarMaxHistory[i] = -1; this.scrollBarMaxHistory[i] = -1;
} }
base.ForceUpdateArea();
this.SetScrollBarStyle(); this.SetScrollBarStyle();
} }