mirror of
https://github.com/apache/superset.git
synced 2026-07-26 16:42:32 +00:00
.layer{X,Y} gives viewport offset, moved to node offset using .offset{X,Y}
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user