olifolkerd / tabulator

Interactive Tables and Data Grids for JavaScript
http://tabulator.info
MIT License
6.55k stars 810 forks source link

ProgressiveLoad scroll jumping #4171

Open karpiq24 opened 1 year ago

karpiq24 commented 1 year ago

Describe the bug When using progressive loading with remote data, table scroll jumps back to start of the table instead of continuing with scrolling flow.

Tabulator Info 5.4.4 I tried older versions and this issue is happening from version 5.3.0+

Working Example https://jsfiddle.net/b4wgy7m6/2/

To Reproduce Scroll table to load more data

Expected behavior User is seeing same rows as before, can scroll further down

Desktop (please complete the following information):

technofreakz commented 1 year ago

Hello,

Using version 5.4, faced this issue, in my cace this was due to "last_page" count value passed from back end (PHP script), had set this to be same as page size, corrected this by calculating page size by counting total rows , if rows more than page size, then divide by page size to get page count. Eg. page size = 20, total rows 70, 70 divide by 20 = 3.5, roud off to 4., "last_page" = 4

matteo-azzolini commented 1 month ago

In my case I solved it by setting a fixed height to the table