Skip to content

Commit 9ec38b1

Browse files
committed
round bbox widths values to workaround Chrome78 rounding errors
1 parent cb5be64 commit 9ec38b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fx/hover.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ function createHoverText(hoverData, opts, gd) {
884884
.text(s.text())
885885
.call(Drawing.font, commonLabelFont);
886886
var dummyBB = dummy.node().getBoundingClientRect();
887-
if(dummyBB.width < tbb.width) {
887+
if(Math.round(dummyBB.width) < Math.round(tbb.width)) {
888888
s.attr('x', ltx - dummyBB.width);
889889
}
890890
dummy.remove();

0 commit comments

Comments
 (0)