Skip to content

Commit f773a2d

Browse files
committed
fixed index cache after sort
1 parent 348167a commit f773a2d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

public/infinite-scroll.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@
114114
if (!document.querySelector('.cb_rowHeightFix').checked) {
115115
return;
116116
}
117+
118+
const visibleRowList = grid.viewport.rows;
117119
// console.log(visibleRowList);
118120
const rows = [];
119121
const heights = [];
120-
grid.viewport.rows.forEach(function(row) {
121-
const rowItem = grid.getViewRowItem(row);
122+
visibleRowList.forEach(function(viewIndex) {
123+
const rowItem = grid.getViewRowItem(viewIndex);
122124
if (!rowItem.rowHeightFixable || rowItem.rowHeightFixed) {
123125
return;
124126
}

0 commit comments

Comments
 (0)