Skip to content

Commit fe54f73

Browse files
amcdnlmmalerba
authored andcommitted
fix(scrolling): scrollbar jump when data change on scroll (angular#11193)
* fix(scrolling): data change not updating size * chore: remove todo * chore: more performant fix for jump
1 parent c4177ff commit fe54f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ export class AutoSizeVirtualScrollStrategy implements VirtualScrollStrategy {
132132
/** @docs-private Implemented as part of VirtualScrollStrategy. */
133133
onDataLengthChanged() {
134134
if (this._viewport) {
135-
// TODO(mmalebra): Do something smarter here.
136135
this._setScrollOffset();
136+
this._checkRenderedContentSize();
137137
}
138138
}
139139

0 commit comments

Comments
 (0)