Skip to content

Commit

Permalink
Fix: On table destroy, remove absolute positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Jardine committed Feb 25, 2013
1 parent d12b61c commit 278510d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions media/js/dataTables.scroller.js
Expand Up @@ -425,6 +425,16 @@ Scroller.prototype = {
this.s.dt.oApi._fnCallbackReg( this.s.dt, 'aoStateSaveParams', function (oS, oData) { this.s.dt.oApi._fnCallbackReg( this.s.dt, 'aoStateSaveParams', function (oS, oData) {
oData.iScroller = that.dom.scroller.scrollTop; oData.iScroller = that.dom.scroller.scrollTop;
}, "Scroller_State" ); }, "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 = "";
}
} );
}, },




Expand Down

0 comments on commit 278510d

Please sign in to comment.