Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:DataTables/Scroller

  • Loading branch information...
commit 1bf1ae762d94eec3aa1fc0b68feeaa2229a6f3ea 2 parents 637195a + fb168a2
@DataTables DataTables authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 media/js/Scroller.js
View
7 media/js/Scroller.js
@@ -584,6 +584,7 @@ Scroller.prototype = {
"_fnCalcRowHeight": function ()
{
var
+ nDiv = document.createElement('div'),
nTable = this.s.dt.nTable.cloneNode( false ),
nBody = document.createElement( 'tbody' ),
nTr = document.createElement('tr'),
@@ -593,9 +594,11 @@ Scroller.prototype = {
nTr.appendChild( nTd );
nBody.appendChild( nTr );
nTable.appendChild( nBody );
- document.body.appendChild( nTable );
+ nDiv.className = this.s.dt.oClasses.sScrollBody;
+ nDiv.appendChild( nTable );
+ document.body.appendChild( nDiv );
this.s.rowHeight = $(nTr).height();
- document.body.removeChild( nTable );
+ document.body.removeChild( nDiv );
},

0 comments on commit 1bf1ae7

Please sign in to comment.
Something went wrong with that request. Please try again.