Permalink
Browse files

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

  • Loading branch information...
2 parents 637195a + fb168a2 commit 1bf1ae762d94eec3aa1fc0b68feeaa2229a6f3ea @DataTables DataTables committed Aug 29, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 media/js/Scroller.js
View
@@ -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.