diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 33a01370..26959a14 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -3296,7 +3296,7 @@ o.oScroll.iBarWidth : 0; if ( o.nTable.offsetHeight < nScrollBody.offsetHeight ) { - nScrollBody.style.height = _fnStringToCss( $(o.nTable).height()+iExtra ); + nScrollBody.style.height = _fnStringToCss( o.nTable.offsetHeight+iExtra ); } } diff --git a/media/src/core/core.scrolling.js b/media/src/core/core.scrolling.js index 900d9525..b5c82d40 100644 --- a/media/src/core/core.scrolling.js +++ b/media/src/core/core.scrolling.js @@ -415,7 +415,7 @@ function _fnScrollDraw ( o ) o.oScroll.iBarWidth : 0; if ( o.nTable.offsetHeight < nScrollBody.offsetHeight ) { - nScrollBody.style.height = _fnStringToCss( $(o.nTable).height()+iExtra ); + nScrollBody.style.height = _fnStringToCss( o.nTable.offsetHeight+iExtra ); } }