Popover scroll issues #1668
Answered
by
andioneto
vankhoawin
asked this question in
Q&A
-
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.
Answered by
andioneto
Jul 20, 2021
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.
2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andioneto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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! 🙌