Clusterize.js: Unable to scroll to the bottom of a table when there is only 1 cluster
I’m seeing an issue where I can’t scroll to the bottom of the table. The scrollbar position jerks back up before it reaches the bottom : http://output.jsbin.com/midasuvuce/4 . Increasing the rows_in_block to 50 seems to fix the issue.
This is the configuration I’m using
var clusterize = new Clusterize({ contentId: 'content-area', rows_in_block: 26, tag: 'tr', show_no_data_row: false, scrollId: 'venue-ticket-list' });
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 17 (8 by maintainers)
I investigated a little more, it seems getClusterNum returns 0 while scrolling, but near the bottom of the list it sometimes returns 1. There’s only 1 cluster though, so it just re-adds the original cluster/rows. http://output.jsbin.com/daqugusebi
I think it has something to do with the fact that opts.item_height is set to 59, but the average height of the rows is ~65. If I set opts.item_height the average height that fixes the issue.
I think I will just set rows_in_block to 50, I haven’t yet reproduced the issue with that setting.