Skip to content

Commit

Permalink
v1.4: take into account scrolling to calculate the position (fix #6)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlefevre committed Jul 30, 2019
1 parent 017da89 commit 3f15b4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Elm Package Info",
"version": "1.3",
"version": "1.4",
"description": "Display additional information for a package on package.elm-lang.org (elm version, dependencies, license, …)",
"icons": {
"16": "icons/elm-16.png",
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function updatePosition() {
const pkgNav = pkgNavs[0];
const rect = pkgNav.getBoundingClientRect();
info.style.left = (rect.x).toString() + "px";
info.style.top = (rect.y + rect.height).toString() + "px";
info.style.top = (window.scrollY + rect.y + rect.height).toString() + "px";
info.style.display = "block";
translateFooter();
} else if (info) {
Expand Down

0 comments on commit 3f15b4a

Please sign in to comment.