Skip to content

Commit b53c387

Browse files
committed
use _paper instaed of _paperdiv - remove fallback
1 parent 60fe0fe commit b53c387

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/fx/hover.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ function _hover(gd, evt, subplot, noHoverEvent) {
831831
rotateLabels: rotateLabels,
832832
bgColor: bgColor,
833833
container: fullLayout._hoverlayer,
834-
outerContainer: fullLayout._paperdiv,
834+
outerContainer: fullLayout._paper,
835835
commonLabelOpts: fullLayout.hoverlabel,
836836
hoverdistance: fullLayout.hoverdistance
837837
};
@@ -896,8 +896,8 @@ function createHoverText(hoverData, opts, gd) {
896896
var t0 = c0[axLetter + 'Label'];
897897
var outerContainerBB = outerContainer.node().getBoundingClientRect();
898898
var outerTop = outerContainerBB.top;
899-
var outerWidth = outerContainerBB.width || fullLayout.width;
900-
var outerHeight = outerContainerBB.height || fullLayout.height;
899+
var outerWidth = outerContainerBB.width;
900+
var outerHeight = outerContainerBB.height;
901901

902902
// show the common label, if any, on the axis
903903
// never show a common label in array mode,

0 commit comments

Comments
 (0)