Permalink
Browse files

Fix: On table destroy, remove absolute positioning

  • Loading branch information...
1 parent d12b61c commit 278510da95a44523ac22051c762fc09250ad7f25 @DataTables committed Feb 25, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 media/js/dataTables.scroller.js
@@ -425,6 +425,16 @@ Scroller.prototype = {
this.s.dt.oApi._fnCallbackReg( this.s.dt, 'aoStateSaveParams', function (oS, oData) {
oData.iScroller = that.dom.scroller.scrollTop;
}, "Scroller_State" );
+
+ /* Destructor */
+ this.s.dt.aoDestroyCallback.push( {
+ "sName": "Scroller",
+ "fn": function () {
+ that.dom.table.style.position = "";
+ that.dom.table.style.top = "";
+ that.dom.table.style.left = "";
+ }
+ } );
},

0 comments on commit 278510d

Please sign in to comment.