Scroller extension wrong pagination

Scroller extension wrong pagination

tala91tala91 Posts: 2Questions: 2Answers: 0
edited April 2021 in Free community support

Hi everyone!

I found this issue with the scroller extension.
Using calc / % height in scrollY option (or flex on dataTables_scrollBody through css) causes wrong entries calculation:

Maybe dataTables miscalculate the rows height due to scrollY option?

Link to test case: https://jsfiddle.net/r2L49wbt/

Thanks for your help.

Salvatore

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    scrollY doesn't support calculations, as the reference page states, the "value given here can be any CSS unit, or a number". If you change it to something fixed, such as "200px" it works as expected. You could do that sum before initialising the table and just pass it in.

    Colin

This discussion has been closed.