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.
*
* 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

Loading…
Cancel
Save