Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
There was an error while loading. Please reload this page.
If the number of items shrinks, and scrollOffset > 0, it scrolls to the top, but doesn't update the scroll size. Hence, you're left with a dirty scrollbar.
This is happening here: https://github.com/angular/material/blob/master/src/components/virtualRepeat/virtual-repeater.js#L543
Not familiar with this code, but perhaps it needs to call
this.container.setScrollSize(itemsLength * this.itemSize);In addition to
this.container.resetScroll();Easy fix?