Popover scroll issues #1668
-
Hi team, running into some weirdness about Popover and scrolling. In the first picture you'll see that the Popover is in the correct placement, but after scrolling down the page a bit, it seem to not be attached to the component it encompasses. Scrolled to the top Scrolled a bit down |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @vnguyen94! That is certainly unexpected, thanks for letting us know. Is there any way we could see the code that the screenshots are from? |
Beta Was this translation helpful? Give feedback.
-
Hi @vnguyen94 👋 Below you can see that the However children of the The tooltip is then relative to the containing Please let us know if you have anymore questions, and thanks for reaching out! 🙌 |
Beta Was this translation helpful? Give feedback.
Hi @vnguyen94 👋
To follow up from our conversations on Slack, the tooltip uses
position: absolute;
which requires a relative parent.Below you can see that the
div
that contains theiframe
is styled asposition: relative;
:However children of the
iframe
do not inherit styles from the container, so itsposition
property is the default value (as it is not explicitly set), which you can see below:The tooltip is then relative to the containing
div
, rather than the contents of theiframe
.We suggest that the body be styled as
position: relative;
to fix this unexpected performance.Please let us know if you have anymore questions, and thanks for reaching out! 🙌