Initial commit
This commit is contained in:
13
node_modules/react-overlays/lib/utils/getDocumentHeight.js
generated
vendored
Normal file
13
node_modules/react-overlays/lib/utils/getDocumentHeight.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
exports.default = function (doc) {
|
||||
return Math.max(doc.documentElement.offsetHeight || 0, doc.height || 0, doc.body.scrollHeight || 0, doc.body.offsetHeight || 0);
|
||||
};
|
||||
|
||||
module.exports = exports["default"]; /**
|
||||
* Get the height of the document
|
||||
*
|
||||
* @returns {documentHeight: number}
|
||||
*/
|
||||
Reference in New Issue
Block a user