1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-30 12:24:10 +01:00

Fix: _fnGetTdNodes works on a column data array basis, not visible columns, so _fnGetWidestNode need only deal with column indexes. It was possible before that the width calculation would be done in the wrong column if using hidden columns

This commit is contained in:
Allan Jardine 2011-05-12 20:14:29 +01:00
parent c8c10d1fba
commit dd0e4023f0

View File

@ -5657,7 +5657,6 @@
function _fnGetWidestNode( oSettings, iCol )
{
var iMaxIndex = _fnGetMaxLenString( oSettings, iCol );
var iVis = _fnColumnIndexToVisible( oSettings, iCol);
if ( iMaxIndex < 0 )
{
return null;
@ -5669,7 +5668,7 @@
n.innerHTML = _fnGetCellData( oSettings, iMaxIndex, iCol, '' );
return n;
}
return _fnGetTdNodes(oSettings, iMaxIndex)[iVis];
return _fnGetTdNodes(oSettings, iMaxIndex)[iCol];
}
/*