1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

Fix: Hold the scrolling position if holding the draw position

* This fix was partly committed earlier by mistake [b7feaa2]
* The fix is simply to store the draw hold state and make use of it in
  the draw scroll callback.
This commit is contained in:
Allan Jardine 2014-05-23 16:31:25 +01:00
parent 501ed72cee
commit 96b7ef9176
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
0ebb60d6ae47e378a970b3a277f14ae09bce9c42
014b64c0781cdf68073d51d5ca8e46a45425bbbd

View File

@ -2003,11 +2003,14 @@
settings.aiDisplay = settings.aiDisplayMaster.slice();
}
settings._drawHold = holdPosition;
if ( holdPosition !== true ) {
settings._iDisplayStart = 0;
}
// Let any modules know about the draw hold position state (used by
// scrolling internally)
settings._drawHold = holdPosition;
_fnDraw( settings );
settings._drawHold = false;