1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 17:59:24 +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() {
if (!this.scrollOverflow) {
if (this.scrolledChildren.Count > 0)
this.scrolledChildren.Clear();
if (!this.scrollOverflow)
return;
}
// 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));