frappe/gantt

Firefox: tooltip is out of screen

gdebrion opened this issue ยท 0 comments

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?