mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
.layer{X,Y} gives viewport offset, moved to node offset using .offset{X,Y}
This commit is contained in:
parent
09d597f3ad
commit
b045075a96
@ -89,8 +89,8 @@ function sankeyVis(slice) {
|
||||
.html(function () { return getTooltipHtml(d); })
|
||||
.transition()
|
||||
.duration(200)
|
||||
.style('left', (d3.event.layerX + 10) + 'px')
|
||||
.style('top', (d3.event.layerY + 10) + 'px')
|
||||
.style('left', (d3.event.offsetX + 10) + 'px')
|
||||
.style('top', (d3.event.offsetY + 10) + 'px')
|
||||
.style('opacity', 0.95);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user