deferLoading and scrollCollapse issues with 1.4.2 scroller + serverside processing
deferLoading and scrollCollapse issues with 1.4.2 scroller + serverside processing
Once we updated our dataTables to 1.10.12 and scroller to 1.4.2(don't think this has anything to with the issue), we are seeing issues with record count -- please see the codepen created to demonstrate the issue.
http://codepen.io/kunalbohra/pen/jrwANv
I spent some time trying to figure out what the issue could be:
inside the _fnFeatureHtmlTable function in the version we were using prior to the update, scrollBody height was explicitly set to to the value of scrollY as such:
.append(
$(_div, { 'class': classes.sScrollBody } )
.css( {
position: 'relative',
overflow: 'auto',
width: size( scrollX )
} )
.append( table )
);
In 1.10.12 this has been changed to $(scrollBody).css(
scrollY && scroll.bCollapse ? 'max-height' : 'height',
scrollY
);
so if scrollCollapse is set to true, max-height is to set instead of height, so heights.viewport = $(this.dom.scroller).height();, always returns 0, messing up the iPossibleEnd in fnInfo().
If i comment out the line in my DT initialization that's setting deferRender:0, or set scrollCollapse to false, the counts are correct.
Please advise.