You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiTooltip in EuiContextMenu] Needs to position on scroll #1235
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.)
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.
@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.
changed the title [-]Context menu tooltip needs to position on scroll[/-][+][EuiTooltip in EuiContextMenu] Needs to position on scroll[/+]on Sep 19, 2020
Activity
cchaos commentedon Mar 16, 2020
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.
LeonY1 commentedon Mar 31, 2020
I would like to try solving this issue.
LeonY1 commentedon Apr 1, 2020
@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.
cchaos commentedon Apr 7, 2020
The EuiPopover component uses some popover positioning services:
eui/src/components/popover/popover.tsx
Lines 34 to 38 in 0decfbd
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.
LeonY1 commentedon Apr 7, 2020
Okay thanks for the clarification.
[-]Context menu tooltip needs to position on scroll[/-][+][EuiTooltip in EuiContextMenu] Needs to position on scroll[/+]SergeyPoluektov commentedon Jul 27, 2021
Just came across the same issue with
EuiIconTipplaced inside sticky component. I created a Codesandbox with minimal reproducible example.cee-chen commentedon Jan 11, 2023
This has been resolved as of #6515 -
repositionOnScrollis now a prop available to allEuiToolTips