mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-30 12: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. Thanks to Cat Weismann for this patch.
This commit is contained in:
parent
d141d8370a
commit
fbe83c7b44
8
media/js/jquery.dataTables.js
vendored
8
media/js/jquery.dataTables.js
vendored
@ -2222,12 +2222,18 @@
|
||||
*/
|
||||
this.fnAdjustColumnSizing = function ( bRedraw )
|
||||
{
|
||||
_fnAjustColumnSizing( _fnSettingsFromNode( this[_oExt.iApiIndex] ) );
|
||||
var oSettings = _fnSettingsFromNode(this[_oExt.iApiIndex]);
|
||||
_fnAjustColumnSizing( oSettings );
|
||||
|
||||
if ( typeof bRedraw == 'undefined' || bRedraw )
|
||||
{
|
||||
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