Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.
This repository was archived by the owner on Apr 5, 2023. It is now read-only.

popover-link-component is "jumpy" on css fixed elements #173

@blimmer

Description

@blimmer

Because the popover-link-component is, by default, attached to the ember-application div, the experience is very strange when a popover is open and the user scrolls. Consider a dropdown in a fixed header, like this:

When the user scrolls and this popover is open, the popover scrolls off the screen and then 'snaps' back to the correct position. It would be great if you could attach the popover element to the header (so it inherits the fixed position and doesn't scroll offscreen), but rootElement doesn't work that way.

I've created a JSBin that shows this issue. Can anyone think of a fix for this use case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions