We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc66464 commit ff0a6b0Copy full SHA for ff0a6b0
src/main/resources/js/viewport-height.js
@@ -1 +1 @@
1
-return Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
+return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
src/main/resources/js/viewport-width.js
-return Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
+return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
0 commit comments