Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooltip stays in absolute position when component is hidden or scrolls across screen #374

Open
glorp47 opened this issue Dec 1, 2017 · 7 comments

Comments

@glorp47
Copy link

glorp47 commented Dec 1, 2017

having an issue where I show the tooltip all the time when slider is open, but this causes issues as there are times when component is hidden but the tooltip still stays, or when I scroll down and the tooltip's rendered position is no longer in even position with the component that rendered it

@sushmakale
Copy link

I am also facing same issue

@yesmeck
Copy link
Member

yesmeck commented Mar 7, 2018

Could you reproduce your issue on https://codesandebox.io?

@borwahs
Copy link

borwahs commented Jul 26, 2018

@yesmeck - I have ran into the issue when using a div element that is scrolling within another div (set to 100vh).

Here is my reproduced example: https://codesandbox.io/s/3x5z243mq5

I didn't see a relevant issue in rc-tooltip, but haven't found the relevant spot it updates the absolute positioning.

@joel-gouveia
Copy link

I am also facing this issue is there any solution?

@borwahs
Copy link

borwahs commented Oct 1, 2018

@joel-gouveia - I tried to find a solution but ran out of time debugging it. I have moved on to react-rangeslider.

Sent with GitHawk

@joel-gouveia
Copy link

@borwahs I actually found a solution here:

react-component/tooltip#41 (comment)
getTooltipContainer works as long as the slider has a parent that has position relative

@borwahs
Copy link

borwahs commented Oct 1, 2018

@joel-gouveia - nice find!

Sent with GitHawk

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

No branches or pull requests

5 participants