Potential bug in _fnScrollDraw
Potential bug in _fnScrollDraw

I have a table in which i am adding additional header rows to match groupings i am creating in the draw callback, when _fnScrollDraw is called it will error out when attempting to apply the width to these new header items. It happens because there is no visible column index for the column (around line 3841 in DT version 1.10.6).
$.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {
idx = _fnVisibleToColumnIndex( settings, i );
if(idx != null) el.style.width = settings.aoColumns[idx].sWidth;
} );
The fix above checks to make sure we have an index before attempting to set the width on the element.
This discussion has been closed.