Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

How do I use "position: fixed" for tippy popup? #390

@0xF5T9

Description

@0xF5T9

Adding "position: fixed" didn't make my popup position relate to the browser viewport but to the tippy wrapper instead. 

And when I used Developer Tools to remove the Tippy wrapper inline styles (transform), it worked.

Before:
image
After:
image

So I guess I must configure something to achieve this behavior but I can't figure how.

This link : https://atomiks.github.io/tippyjs/v6/all-props/#popperOptions
mentioned I can use "popperOptions" prop to take full control over the tippy's positioning.
I try to add "strategy: 'fixed'" but I don't see any changes.
image

What am I doing wrong? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions