Skip to content

Commit

Permalink
Use consistent window size properties to improve popup positioning (F…
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread committed Apr 9, 2021
1 parent 66f6ee2 commit f10a1af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/js/app/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
Expand Down

0 comments on commit f10a1af

Please sign in to comment.