diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 559d1664..34cde7b0 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -2951,7 +2951,7 @@ */ function _fnDrawHead( oSettings, aoSource, nTarget ) { - var i, iLen; + var i, iLen, k, kLen; var aoLocal = []; var aApplied = []; var iColumns = oSettings.aoColumns.length; @@ -2979,7 +2979,11 @@ for ( i=0, iLen=aoLocal.length ; itd', nCalcTmp); } - jqColSizing.each( function (i) { - this.style.width = ""; - - var iIndex = _fnVisibleToColumnIndex( oSettings, i ); - if ( iIndex !== null && oSettings.aoColumns[iIndex].sWidthOrig !== "" ) + + /* Apply custom sizing to the cloned header */ + var nThs = _fnGetUniqueThs( oSettings, nTheadClone ); + iCorrector = 0; + for ( i=0 ; ith", nCalcTmp); } - var iIndex, iCorrector = 0, iWidth; + iCorrector = 0; for ( i=0 ; i