aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-09 18:17:02 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-09 18:20:55 -0400
commitf10a1afe051d295c82150659fae6d0f46c19cb57 (patch)
treeeab52bc565fd85c39ef5cb87dad1dbe569a6cc80
parent66f6ee228ed02ad6c1b13a0f7e4e3059d8b6afa4 (diff)
Use consistent window size properties to improve popup positioning (#1607)
-rw-r--r--ext/js/app/popup.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js
index 44cca14a..af8645e4 100644
--- a/ext/js/app/popup.js
+++ b/ext/js/app/popup.js
@@ -664,11 +664,10 @@ class Popup extends EventDispatcher {
}
}
- const body = document.body;
return {
left: 0,
top: 0,
- right: (body !== null ? body.clientWidth : 0),
+ right: window.innerWidth,
bottom: window.innerHeight
};
}