From b00180b71e25f089bfe947a9604836bf8b231ba3 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 14 Aug 2013 09:07:15 +0100 Subject: [PATCH] Dev fix: fnAdjustColumnSizing was reseting paging - The shim layer call to api.draw() was telling the API to reset the paging, but it should have been holding it static (as it now does by passing false in to draw()). --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index a9036a4e..9d0b2736 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -f5f7497e52b93a27bb048d7c3c2bea8c453b1eb9 +6ce86aedafd9cdc882b15c8fa069a156791ede89 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 84e87d4b..9eecbea4 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -4748,7 +4748,7 @@ var scroll = settings.oScroll; if ( bRedraw === undefined || bRedraw ) { - api.draw( true ); + api.draw( false ); } else if ( scroll.sX !== "" || scroll.sY !== "" ) { /* If not redrawing, but scrolling, we want to apply the new column sizes anyway */