Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions media/js/ColVis.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,17 +611,15 @@ ColVis.prototype = {
$.fn.dataTableExt.iApiIndex = that._fnDataTablesApiIndex.call(that);

// Optimisation for server-side processing when scrolling - don't do a full redraw
that.s.dt.oInstance.fnSetColumnVis( i, showHide, false );
that.s.dt.oInstance.fnAdjustColumnSizing( false );

if ( dt.oFeatures.bServerSide && (dt.oScroll.sX !== "" || dt.oScroll.sY !== "" ) )
{
that.s.dt.oInstance.fnSetColumnVis( i, showHide, false );
that.s.dt.oInstance.fnAdjustColumnSizing( false );
that.s.dt.oInstance.oApi._fnScrollDraw( that.s.dt );
that._fnDrawCallback();
}
else
{
that.s.dt.oInstance.fnSetColumnVis( i, showHide );
that.s.dt.oInstance.oApi._fnScrollDraw( that.s.dt );
}

that._fnDrawCallback();

$.fn.dataTableExt.iApiIndex = oldIndex; /* Restore */

Expand Down