diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-04-09 18:17:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 18:17:02 -0400 |
commit | b23c4bff4bf319ea79eea0d025e21eb19e6dcd68 (patch) | |
tree | 7a0443789ee3fb30acf717d6ae4d9bce1abed688 /ext/js/app/popup.js | |
parent | 331b1649007cc790fd0e9d813597eba4f7eeafc1 (diff) |
Use consistent window size properties to improve popup positioning (#1607)
Diffstat (limited to 'ext/js/app/popup.js')
-rw-r--r-- | ext/js/app/popup.js | 3 |
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 }; } |