File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ module.exports = function plot(gd, calcData) {
135
135
136
136
var linkHoverFollow = function ( element , d ) {
137
137
var trace = d . link . trace ;
138
- var rootBBox = gd . getBoundingClientRect ( ) ;
138
+ var rootBBox = gd . _fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
139
139
var boundingBox = element . getBoundingClientRect ( ) ;
140
140
var hoverCenterX = boundingBox . left + boundingBox . width / 2 ;
141
141
var hoverCenterY = boundingBox . top + boundingBox . height / 2 ;
@@ -193,7 +193,7 @@ module.exports = function plot(gd, calcData) {
193
193
var nodeHoverFollow = function ( element , d ) {
194
194
var trace = d . node . trace ;
195
195
var nodeRect = d3 . select ( element ) . select ( '.nodeRect' ) ;
196
- var rootBBox = gd . getBoundingClientRect ( ) ;
196
+ var rootBBox = gd . _fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
197
197
var boundingBox = nodeRect . node ( ) . getBoundingClientRect ( ) ;
198
198
var hoverCenterX0 = boundingBox . left - 2 - rootBBox . left ;
199
199
var hoverCenterX1 = boundingBox . right + 2 - rootBBox . left ;
You can’t perform that action at this time.
0 commit comments