diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-15 21:09:51 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-16 19:54:41 -0500 |
commit | 4ba93b07706745ea4d3ba21598e686275b8fa5f1 (patch) | |
tree | ae4cb58e81c61d6203dc7ac65374cfd0c60978ac /ext/fg/js/popup.js | |
parent | 37da5fef59fcf0b0391e8e0cc12c5d29674e7b47 (diff) |
Add getContainerRect to popup
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r-- | ext/fg/js/popup.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 0f6af1a5..46a09548 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -135,6 +135,10 @@ class Popup { } } + getContainerRect() { + return this.container.getBoundingClientRect(); + } + static injectOuterStylesheet(css) { if (Popup.outerStylesheet === null) { if (!css) { return; } |