File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -855,11 +855,10 @@ function createSpikelines(hoverData, opts) {
855
855
yLength = c0 . ya . _length ,
856
856
xEdge = c0 . ya . _boundingBox . left + ( ySide === 'left' ? c0 . ya . _boundingBox . width : 0 ) ,
857
857
yEdge = c0 . xa . _boundingBox . top + ( xSide === 'top' ? c0 . xa . _boundingBox . height : 0 ) ,
858
- outerBBox = outerContainer . node ( ) . getBoundingClientRect ( ) ,
859
858
xFreeBase = xOffset + ( ySide === 'right' ? xLength : 0 ) ,
860
859
yFreeBase = yOffset + ( xSide === 'top' ? yLength : 0 ) ,
861
- xAnchoredBase = xEdge - outerBBox . left ,
862
- yAnchoredBase = yEdge - outerBBox . top ,
860
+ xAnchoredBase = xEdge - outerContainer . node ( ) . offsetLeft ,
861
+ yAnchoredBase = yEdge - outerContainer . node ( ) . offsetTop ,
863
862
xBase = c0 . ya . anchor === 'free' ? xFreeBase : xAnchoredBase ,
864
863
yBase = c0 . xa . anchor === 'free' ? yFreeBase : yAnchoredBase ,
865
864
contrastColor = Color . combine ( opts . fullLayout . plot_bgcolor , opts . fullLayout . paper_bgcolor ) ,
You can’t perform that action at this time.
0 commit comments