Skip to content

[EuiTooltip in EuiContextMenu] Needs to position on scroll #1235

Closed

Description

@cjcenizal

I'm not sure if this is something that should always be on, or if it should be an option. And now that I think of it, it seems that any non-fixed-position components which we put inside of portals should expose an option like repositionOnScroll, e.g. tooltips.

(The reason the context menu in this gif doesn't scroll is because it's in a feature branch I have open to apply repositionOnScroll to it.)

context_menu_tooltip

CC @chandlerprall @timroes

Activity

  1. cchaos commented on Mar 16, 2020

    @cchaos
    Contributor

    Tooltips, I believe, are using the same Popover service as EuiPopovers and EuiPopovers can handle fixed position anchors. It seems that Tooltips just need to have this ability as well and most likely always, instead of manually.

  2. LeonY1 commented on Mar 31, 2020

    @LeonY1
    Contributor

    I would like to try solving this issue.

  3. LeonY1 commented on Apr 1, 2020

    @LeonY1
    Contributor

    @cchaos I was wondering if I could get some more information regarding this EuiPopovers and Tooltips. I can see that within the Tooltip there is a popover element. However, I'm not entirely sure what needs to be changed.

  4. cchaos commented on Apr 7, 2020

    @cchaos
    Contributor

    The EuiPopover component uses some popover positioning services:

    import {
    findPopoverPosition,
    getElementZIndex,
    EuiPopoverPosition,
    } from '../../services/popover';

    While the EuiTooltipPopover does not. https://github.com/elastic/eui/blob/master/src/components/tool_tip/tool_tip_popover.tsx

    The EuiTooltipPopover could probably also use these popover positioning services to help maintain position in fixed elements.

  5. LeonY1 commented on Apr 7, 2020

    @LeonY1
    Contributor

    Okay thanks for the clarification.

  6. changed the title [-]Context menu tooltip needs to position on scroll[/-] [+][EuiTooltip in EuiContextMenu] Needs to position on scroll[/+] on Sep 19, 2020
  7. SergeyPoluektov commented on Jul 27, 2021

    @SergeyPoluektov

    Just came across the same issue with EuiIconTip placed inside sticky component. I created a Codesandbox with minimal reproducible example.

  8. cee-chen commented on Jan 11, 2023

    @cee-chen
    Contributor

    This has been resolved as of #6515 - repositionOnScroll is now a prop available to all EuiToolTips

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions