Feature - pageResize: Fix for Firefox where uses clientHeight to get the height of the inner window

pull/192/head
Allan Jardine 10 years ago
parent ed243bc52b
commit adb2993996

@ -32,7 +32,7 @@
* `table` is a DataTable's API instance. * `table` is a DataTable's API instance.
* *
* For more detailed information please see: * For more detailed information please see:
* http://datatables.net/blog/ * http://datatables.net/blog/2015-04-10
*/ */
(function($){ (function($){
@ -107,14 +107,14 @@ PageResize.prototype = {
var height = body.offsetHeight; var height = body.offsetHeight;
this.contentDocument.defaultView.onresize = function () { this.contentDocument.defaultView.onresize = function () {
var newHeight = body.offsetHeight; var newHeight = body.clientHeight || body.offsetHeight;
if ( newHeight !== height ) { if ( newHeight !== height ) {
height = newHeight; height = newHeight;
that._size(); that._size();
} }
} };
}; };
obj obj

Loading…
Cancel
Save