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 3e9a442 commit ec388a9Copy full SHA for ec388a9
src/features/web-compat.js
@@ -5,6 +5,11 @@ import { URL } from '../captured-globals.js'
5
* Fixes incorrect sizing value for outerHeight and outerWidth
6
*/
7
function windowSizingFix () {
8
+ // macOS browser incorrectly reports window height for window.screenY / window.screenTop
9
+ if (window.screenY === window.screen.height) {
10
+ window.screenY = window.screenTop = 0
11
+ }
12
+
13
if (window.outerHeight !== 0 && window.outerWidth !== 0) {
14
return
15
}
0 commit comments