We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ab625c + 29e032b commit fc6c485Copy full SHA for fc6c485
slick.grid.js
@@ -2900,7 +2900,12 @@
2900
}
2901
2902
2903
- th = Math.max(options.rowHeight * numberOfRows, tempViewportH - scrollbarDimensions.height);
+ const sumRowsHeight = (options.rowHeights || []).reduce((total, { height }) => total + height, 0);
2904
+ const heightLeft = options.rowHeights && options.rowHeights.length ?
2905
+ (numberOfRows - options.rowHeights.length) * options.rowHeight :
2906
+ (numberOfRows * options.rowHeight);
2907
+
2908
+ th = Math.max(sumRowsHeight + heightLeft , tempViewportH - scrollbarDimensions.height);
2909
2910
if (activeCellNode && activeRow > l) {
2911
resetActiveCell();
0 commit comments