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:
parent
c8c10d1fba
commit
dd0e4023f0
3
media/js/jquery.dataTables.js
vendored
3
media/js/jquery.dataTables.js
vendored
@ -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];
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user