This commit is contained in:
Jan Prochazka
2021-03-05 17:48:49 +01:00
parent 4bfba2ec02
commit 1c7052810a

View File

@@ -298,19 +298,17 @@
</tr>
</thead>
<tbody>
{#each _.range(firstVisibleRowScrollIndex, firstVisibleRowScrollIndex + visibleRowCountUpperBound) as rowIndex (rowIndex)}
{#if rowIndex < grider.rowCount}
<DataGridRow
{rowIndex}
{grider}
{visibleRealColumns}
{rowHeight}
{autofillSelectedCells}
selectedCells={filterCellsForRow(selectedCells, rowIndex)}
autofillMarkerCell={filterCellForRow(autofillMarkerCell, rowIndex)}
{frameSelection}
/>
{/if}
{#each _.range(firstVisibleRowScrollIndex, Math.min(firstVisibleRowScrollIndex + visibleRowCountUpperBound, grider.rowCount)) as rowIndex (rowIndex)}
<DataGridRow
{rowIndex}
{grider}
{visibleRealColumns}
{rowHeight}
{autofillSelectedCells}
selectedCells={filterCellsForRow(selectedCells, rowIndex)}
autofillMarkerCell={filterCellForRow(autofillMarkerCell, rowIndex)}
{frameSelection}
/>
{/each}
</tbody>
</table>