358
360
// Convert visible area to visible indexes. Always include top-level record for a visible nested record.
361
var startIndex = Math.max(0, Math.min(Math.floor(visibleTop / rowHeight) - 1, recordsInWindow.length - 1));
360
362
while (startIndex > 0 && recordsInWindow[startIndex].parent)
362
364
var endIndex = Math.min(recordsInWindow.length, Math.ceil(visibleBottom / rowHeight));