Skip to content

Commit d00137f

Browse files
committed
feat(popup): use fixed positioning strategy instead of absolute
1 parent 59e693d commit d00137f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/popup/popup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default class PopupElement extends HTMLElement {
146146
if (!this.content.hidden) return;
147147

148148
this.content.hidden = false;
149-
this.content.style.position = 'absolute';
149+
this.content.style.position = 'fixed';
150150

151151
this.backdrop.hidden = false;
152152

@@ -160,6 +160,7 @@ export default class PopupElement extends HTMLElement {
160160
this.content,
161161
() => {
162162
computePosition(this.button, this.content, {
163+
strategy: 'fixed',
163164
placement:
164165
(this.getAttribute('placement') as any) || 'bottom',
165166
middleware: [

0 commit comments

Comments
 (0)