nScrollHeadTable.style.width = $(o.nTable).outerWidth()+"px"; nScrollHeadInner.style.width = ($(o.nTable).outerWidth()+o.iScrollWidth)+"px";o.iScrollWidth is the key difference, but that should not be null (or NaN)! Are you able to put up an example of this occurring? That would be very useful - or indicate how I can modify one of my examples to cause it.
alert( $(o.nTable).outerWidth() ); alert( o.iScrollWidth );just before the line:
nScrollHeadTable.style.width = $(o.nTable).outerWidth()+"px";and let me know what the output is please.
$('#example').dataTable().fnAdjustColumnSizing();
$('#example').dataTable().fnDraw();
"sScrollY": 253,
"sScrollX": "102%",
"bScrollCollapse": false,
"bAutoWidth": false,
"aoColumns": [
{ "sWidth": "100px"},
{ "sWidth": "100px"},
{ "sWidth": "100px"},
{ "sWidth": "100px"},
{ "sWidth": "100px"},
{ "sWidth": "100px"}
],
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.