Skip to content

Commit c73ab28

Browse files
authored
Merge pull request #1858 from FelixMuehling/bugfix/1812-fix-initial-size-not-using-tombstone-size
fix(template): using tombstoneSize for non-cached items with 0 height
2 parents 96750c4 + 40b5c07 commit c73ab28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/template/experimental/virtual-scrolling/src/lib/scroll-strategies/autosize-virtual-scroll-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ export class AutoSizeVirtualScrollStrategy<
10131013
const isCached = this._virtualItems[index].cached;
10141014
const size = isCached
10151015
? oldSize
1016-
: this.getElementSize(this.getElement(view));
1016+
: this.getElementSize(this.getElement(view)) || this.tombstoneSize;
10171017
this._virtualItems[index].size = size;
10181018
this._virtualItems[index].cached = true;
10191019
return [size, size - oldSize];

0 commit comments

Comments
 (0)