1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 12:58:33 +01:00

this would never happen

This commit is contained in:
Ell 2023-11-11 12:43:17 +01:00
parent 1fa563be46
commit 5fcee515e2

View file

@ -355,11 +355,8 @@ namespace MLEM.Ui.Elements {
} }
private void ScrollChildren() { private void ScrollChildren() {
if (!this.scrollOverflow) { if (!this.scrollOverflow)
if (this.scrolledChildren.Count > 0)
this.scrolledChildren.Clear();
return; return;
}
// we ignore false grandchildren so that the children of the scroll bar stay in place // we ignore false grandchildren so that the children of the scroll bar stay in place
var currentChildren = new HashSet<Element>(this.GetChildren(c => c != this.ScrollBar, true, true)); var currentChildren = new HashSet<Element>(this.GetChildren(c => c != this.ScrollBar, true, true));