From adb2993996151606793fbd2fad05cc0e86c8f7ef Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 29 Apr 2015 09:56:52 +0100 Subject: [PATCH] Feature - pageResize: Fix for Firefox where uses clientHeight to get the height of the inner window --- features/pageResize/dataTables.pageResize.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/pageResize/dataTables.pageResize.js b/features/pageResize/dataTables.pageResize.js index b10dbd4..c868183 100644 --- a/features/pageResize/dataTables.pageResize.js +++ b/features/pageResize/dataTables.pageResize.js @@ -32,7 +32,7 @@ * `table` is a DataTable's API instance. * * For more detailed information please see: - * http://datatables.net/blog/ + * http://datatables.net/blog/2015-04-10 */ (function($){ @@ -107,14 +107,14 @@ PageResize.prototype = { var height = body.offsetHeight; this.contentDocument.defaultView.onresize = function () { - var newHeight = body.offsetHeight; + var newHeight = body.clientHeight || body.offsetHeight; if ( newHeight !== height ) { height = newHeight; that._size(); } - } + }; }; obj