We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc7804 commit b4e6aa2Copy full SHA for b4e6aa2
src/traces/sankey/plot.js
@@ -135,7 +135,7 @@ module.exports = function plot(gd, calcData) {
135
136
var linkHoverFollow = function(element, d) {
137
var trace = d.link.trace;
138
- var rootBBox = gd.getBoundingClientRect();
+ var rootBBox = d3.select(gd).select('.svg-container').node().getBoundingClientRect();
139
var boundingBox = element.getBoundingClientRect();
140
var hoverCenterX = boundingBox.left + boundingBox.width / 2;
141
var hoverCenterY = boundingBox.top + boundingBox.height / 2;
0 commit comments