mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-03 15:24:10 +01:00
Updated: fnAdjustColumnSizing when called with 'false' as the first (and only) parameter will now apply the calculated column sizes to the table when scrolling is being used. This allows a non-Ajax update to occur if using server-side processing.
This commit is contained in:
parent
d141d8370a
commit
65e9e86d9e
8
media/js/jquery.dataTables.js
vendored
8
media/js/jquery.dataTables.js
vendored
@ -2222,12 +2222,18 @@
|
|||||||
*/
|
*/
|
||||||
this.fnAdjustColumnSizing = function ( bRedraw )
|
this.fnAdjustColumnSizing = function ( bRedraw )
|
||||||
{
|
{
|
||||||
_fnAjustColumnSizing( _fnSettingsFromNode( this[_oExt.iApiIndex] ) );
|
var oSettings = _fnSettingsFromNode(this[_oExt.iApiIndex]);
|
||||||
|
_fnAjustColumnSizing( oSettings );
|
||||||
|
|
||||||
if ( typeof bRedraw == 'undefined' || bRedraw )
|
if ( typeof bRedraw == 'undefined' || bRedraw )
|
||||||
{
|
{
|
||||||
this.fnDraw( false );
|
this.fnDraw( false );
|
||||||
}
|
}
|
||||||
|
else if ( oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "" )
|
||||||
|
{
|
||||||
|
/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
|
||||||
|
this.oApi._fnScrollDraw(oSettings);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user