1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-21 13:29:04 +01:00

Fix: When calculating the column widths, we should get the data to display, otherwise a null element (particularly when using a null mDataProp) can

cause issues with columns being skipped (due to the null return)
This commit is contained in:
Allan Jardine 2011-05-11 08:53:33 +01:00
parent 275c7520db
commit b3f5ddaf96

View File

@ -5686,7 +5686,7 @@
for ( var i=0 ; i<oSettings.aoData.length ; i++ )
{
var s = _fnGetCellData( oSettings, i, iCol, '' );
var s = _fnGetCellData( oSettings, i, iCol, 'display' );
if ( typeof s == 'string' && s.length > iMax )
{
iMax = s.length;