Skip to content

[EuiFlyout] Popover and other positioned elements within should not scroll with the page #3456

Closed

Description

@matchatype

Absolutely positioned elements do not seem to work correctly when they are wrapped in a flyout component. They scroll with the rest of the page.

Check the "More complicated flyout" on the official style guide for reproduction.

flyout

Activity

  1. snide commented on May 11, 2020

    @snide
    Contributor

    This is mostly capture by #1236

    I'll close that one, since this one has a more general writeup.

  2. cchaos commented on Sep 20, 2020

    @cchaos
    Contributor

    The solution is to add repositionOnScroll={true} to the EuiPopover component. We've talked about a long-term goal that might be able to pass down a context to all EuiFlyout contents in order to supply this automatically. I'll leave this ticket open as a reminder of that goal.

  3. changed the title [-]Positioned elements on flyout should not scroll with the page[/-] [+][EuiFlyout] Popover and other positioned elements within should not scroll with the page[/+] on Sep 20, 2020
  4. github-actions commented on Mar 20, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  5. added
    stale-issue
    on Mar 20, 2021
  6. removed
    stale-issue
    on Mar 20, 2021
  7. cchaos commented on Mar 20, 2021

    @cchaos
    Contributor

    I've added this as a bullet point to #4439, so we don't need this ticket to stay open.

  8. neeerajtk commented on Sep 9, 2021

    @neeerajtk

    I had a similar issue when using EuiPopover inside EuiBasicTable. The popover moved along with the scroll. Solved it by adding onScroll event handler on the wrapping div of EuiBasicTable . onScroll={() => handleOpenedPopover(null)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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