1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-19 12:52:11 +01:00

New: New event - column-sizing - fired when

This commit is contained in:
Allan Jardine 2013-08-06 10:25:57 +01:00
parent f817e9a0be
commit ac7fb22620
2 changed files with 8 additions and 8 deletions

View File

@ -1 +1 @@
06352304626267c445f0816cdf446860af77e721
df3786b5c29f4bc25e2ab63fa7889a8306099764

View File

@ -362,16 +362,16 @@
function _fnAdjustColumnSizing ( oSettings )
{
/* Not interested in doing column width calculation if auto-width is disabled */
if ( oSettings.oFeatures.bAutoWidth === false )
if ( oSettings.oFeatures.bAutoWidth !== false )
{
return false;
_fnCalculateColumnWidths( oSettings );
for ( var i=0 , iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
{
oSettings.aoColumns[i].nTh.style.width = oSettings.aoColumns[i].sWidth;
}
}
_fnCalculateColumnWidths( oSettings );
for ( var i=0 , iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
{
oSettings.aoColumns[i].nTh.style.width = oSettings.aoColumns[i].sWidth;
}
_fnCallbackFire( oSettings, null, 'column-sizing', [oSettings] );
}