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

Firefox: tooltip is out of screen #398

Open
gdebrion opened this issue May 10, 2024 · 0 comments
Open

Firefox: tooltip is out of screen #398

gdebrion opened this issue May 10, 2024 · 0 comments

Comments

@gdebrion
Copy link

In bar.js

$.on(this.group, "mouseenter", (e) => timeout = setTimeout(() => {
  this.show_popup(e.offsetX)
  document.querySelector(`#highlight-${task_id}`).style.display = 'block'
}, 200))

But in Firefox e.offsetX is equal to 0 😞
So the tooltip is displayed with left: 0px and is not visible.

This works fine with Chrome.

How to make offsetX works?

gdebrion added a commit to gdebrion/gantt that referenced this issue May 10, 2024
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

1 participant