From b23c4bff4bf319ea79eea0d025e21eb19e6dcd68 Mon Sep 17 00:00:00 2001
From: toasted-nutbread <toasted-nutbread@users.noreply.github.com>
Date: Fri, 9 Apr 2021 18:17:02 -0400
Subject: Use consistent window size properties to improve popup positioning
 (#1607)

---
 ext/js/app/popup.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'ext/js/app')

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
         };
     }
-- 
cgit v1.2.3