-
Notifications
You must be signed in to change notification settings - Fork 23
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
make tooltips responsive #202
Comments
Good point, I have no clue on how to do it ! |
hi, @bryan-brancotte I'm trying to start tackling this but I'm clueless as well. Do you think we can try to figure it out together? Any thoughts on where to start? |
Hi @HagerDakroury , I hopped you had a clue when you created the issue because I did not have one. Just an idea, but maybe we can at this moment get to know the width of the tooltip container, the width of the container and adapte it to not overflow ( |
@bryan-brancotte are the offsets here based on trial and error? code I'm at the stage of toggling the tooltip to the left but not sure what offset to follow. Or if there is a way to easily mirror the positions? |
Yes, the offsets were manually set to place it close to the pointer but not on it. On the left is a good option, maybe in d3.js there is a way to have tooltip, but I am not aware of so at the time I built the tooltip as it is, with manual location and placement. So here I would go for a |
Thanks a lot! 💯 I was stuck for a while doing the math 😄 |
While reproducing #189, I noticed that the tooltip is not responsive (gets cropped when resizing the browser)
It should be accommodating this by wrapping or moving to the center/left.
The text was updated successfully, but these errors were encountered: