diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-04-09 18:17:02 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-04-09 18:20:55 -0400 |
commit | f10a1afe051d295c82150659fae6d0f46c19cb57 (patch) | |
tree | eab52bc565fd85c39ef5cb87dad1dbe569a6cc80 /ext/js/app/popup.js | |
parent | 66f6ee228ed02ad6c1b13a0f7e4e3059d8b6afa4 (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 }; } |