1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-10 22: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:
Allan Jardine 2010-11-18 21:55:36 +00:00
parent d141d8370a
commit 65e9e86d9e

View File

@ -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);
}
};
/*