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:
parent
1fa563be46
commit
5fcee515e2
1 changed files with 1 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue