Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Use consistent window size properties to improve popup positioning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread authored Apr 9, 2021
1 parent 331b164 commit b23c4bf
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 b23c4bf

Please sign in to comment.