We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad227be + cfdfbfa commit 829faf2Copy full SHA for 829faf2
1 file changed
src/text-expander-element.ts
@@ -108,6 +108,10 @@ class TextExpander {
108
const rect = this.input.getBoundingClientRect()
109
top += rect.top
110
left += rect.left
111
+ if (getComputedStyle(menu).position === 'absolute') {
112
+ top += window.scrollY
113
+ left += window.scrollX
114
+ }
115
}
116
menu.style.top = `${top}px`
117
menu.style.left = `${left}px`
0 commit comments