File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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) {
135135
136136 var linkHoverFollow = function ( element , d ) {
137137 var trace = d . link . trace ;
138- var rootBBox = gd . getBoundingClientRect ( ) ;
138+ var rootBBox = gd . _fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
139139 var boundingBox = element . getBoundingClientRect ( ) ;
140140 var hoverCenterX = boundingBox . left + boundingBox . width / 2 ;
141141 var hoverCenterY = boundingBox . top + boundingBox . height / 2 ;
@@ -193,7 +193,7 @@ module.exports = function plot(gd, calcData) {
193193 var nodeHoverFollow = function ( element , d ) {
194194 var trace = d . node . trace ;
195195 var nodeRect = d3 . select ( element ) . select ( '.nodeRect' ) ;
196- var rootBBox = gd . getBoundingClientRect ( ) ;
196+ var rootBBox = gd . _fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
197197 var boundingBox = nodeRect . node ( ) . getBoundingClientRect ( ) ;
198198 var hoverCenterX0 = boundingBox . left - 2 - rootBBox . left ;
199199 var hoverCenterX1 = boundingBox . right + 2 - rootBBox . left ;
You can’t perform that action at this time.
0 commit comments