Skip to content

Commit

Permalink
fix(ngrid): missed a row when measuring virtual height
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomiassaf committed Dec 3, 2020
1 parent 58ab268 commit cf9ebfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ngrid/src/lib/grid/features/virtual-scroll/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function measureRangeSize(viewContainer: ViewContainerRef,
// The index into the list of rendered views for the first item in the range.
const renderedStartIndex = range.start - renderedRange.start;
// The length of the range we're measuring.
const rangeLen = range.end - range.start;
const rangeLen = range.end - range.start + 1;

// Loop over all root nodes for all items in the range and sum up their size.
let totalSize = 0;
Expand Down

0 comments on commit cf9ebfe

Please sign in to comment.