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

dash_bio.Circos tooltip wrong position if page is scrolled #758

Open
VladimirFokow opened this issue Jun 14, 2023 · 2 comments
Open

dash_bio.Circos tooltip wrong position if page is scrolled #758

VladimirFokow opened this issue Jun 14, 2023 · 2 comments

Comments

@VladimirFokow
Copy link
Contributor

VladimirFokow commented Jun 14, 2023

Bug description
If you scroll the page down and hover over the dash_bio.Circos graph to see the tooltip, it will be shown too low: the tooltip’s position is as if the page wasn’t scrolled at all.

Chrome, Firefox, Edge, Safari browsers all have this issue.

To Reproduce

Expected behavior
A Tooltip should be next to the mouse position, even if we scroll down the page.

Community Plotly post of this issue: here

Screenshots
image

@VladimirFokow
Copy link
Contributor Author

VladimirFokow commented Jun 14, 2023

May be relevant:

repo: https://github.com/nicgirault/circosJS
commit: nicgirault/circosJS@75fea92
says:

 ### 2.0.3 - 2017-04-05
 - Fix tooltip position when we can scroll on the page

Searching for "CircosJS" in dash-bio may be useful: here

Which version of CircosJS does dash-bio use? In search results I see both:


However, plotly/circosJS, branch matthewchan15-zoom-pan-svg does include the above mentioned commit (that fixes the tooltips): plotly/circosJS@75fea92
So does it mean that this commit doesn't actually solve this tooltip issue?

But on the nicgirault/circosJS's demo: the tooltips work correctly when scrolling: https://nicgirault.github.io/circosJS/demo/
Why do they work correctly there but not in dash-bio?

Is the problem with dash-bio, with nicgirault/circosJS, or with plotly/circosJS, branch matthewchan15-zoom-pan-svg, and how would we fix it?

@alexanderfokau
Copy link

Hey!
This problem is caused by this commit in plotly/circosJS that added inline style "position: fixed" to the tooltip element. This commit is not present in other forks of this library.

There is a pull request with a fix: plotly/circosJS#2
Which is left unattended since 2021.

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

No branches or pull requests

2 participants