mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
New: New event - column-sizing - fired when
This commit is contained in:
parent
f817e9a0be
commit
ac7fb22620
@ -1 +1 @@
|
|||||||
06352304626267c445f0816cdf446860af77e721
|
df3786b5c29f4bc25e2ab63fa7889a8306099764
|
||||||
|
14
media/js/jquery.dataTables.js
vendored
14
media/js/jquery.dataTables.js
vendored
@ -362,16 +362,16 @@
|
|||||||
function _fnAdjustColumnSizing ( oSettings )
|
function _fnAdjustColumnSizing ( oSettings )
|
||||||
{
|
{
|
||||||
/* Not interested in doing column width calculation if auto-width is disabled */
|
/* 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 );
|
_fnCallbackFire( oSettings, null, 'column-sizing', [oSettings] );
|
||||||
for ( var i=0 , iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
|
||||||
{
|
|
||||||
oSettings.aoColumns[i].nTh.style.width = oSettings.aoColumns[i].sWidth;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user