trouble with scroller

trouble with scroller

kirkjerkkirkjerk Posts: 23Questions: 5Answers: 0

There seems to be a problem with the new Scroller plugin.
Test case: http://datatables.net/extensions/scroller/

Based on prior investigation (no test case, too difficult to extract from angular and out of my company's Ajax server) ,
something seems amiss with jquery.dataTables.js's _iDisplayLength, it's NaN and any operations off of it get turned into NaN.
my current guess is something in

this.s.viewportRows = parseInt( heights.viewport / heights.row, 10 )+1; 
this.s.dt._iDisplayLength = this.s.viewportRows * this.s.displayBuffer;

is not coming out right, and so set _iDisplayLength to NaN.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Yeah, sorry about this! Its on my task list for today!

    Allan

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    The problem on the site was that the site was loading DataTables 1.10.0-beta.3. Scroller 1.2.1 needs DataTables 1.10.0 release or newer (actually 1.9- should also work, just not the 1.10 beta series).

    If that isn't the issue you are seeing, can you give me a link to the page so I can check it out please?

    Thanks,
    Allan

This discussion has been closed.