Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/json5-1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolinisoup authored Nov 14, 2023
2 parents 052b012 + 829faf2 commit 65f1f0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 20
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
Expand Down
4 changes: 4 additions & 0 deletions src/text-expander-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ class TextExpander {
const rect = this.input.getBoundingClientRect()
top += rect.top
left += rect.left
if (getComputedStyle(menu).position === 'absolute') {
top += window.scrollY
left += window.scrollX
}
}
menu.style.top = `${top}px`
menu.style.left = `${left}px`
Expand Down

0 comments on commit 65f1f0c

Please sign in to comment.