We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d1a0b4 + 65a541f commit d7a666cCopy full SHA for d7a666c
src/features/infinite-scroll/js/infinite-scroll.js
@@ -368,6 +368,12 @@
368
369
newVisibleRows = grid.getVisibleRowCount();
370
371
+ // in case not enough data is loaded to enable scroller - load more data
372
+ var canvasHeight = rowHeight * newVisibleRows;
373
+ if (grid.infiniteScroll.scrollDown && (viewportHeight > canvasHeight)) {
374
+ grid.api.infiniteScroll.raise.needLoadMoreData();
375
+ }
376
+
377
if ( grid.infiniteScroll.direction === uiGridConstants.scrollDirection.UP ){
378
oldTop = grid.infiniteScroll.prevScrollTop || 0;
379
newTop = oldTop + (newVisibleRows - grid.infiniteScroll.previousVisibleRows)*rowHeight;
0 commit comments