Skip to content
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.

md-virtual-repeat scroll size not updated #4435

Closed
@ghost

Description

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions