Skip to content

Commit d239e5a

Browse files
committedNov 2, 2018
Fix issues with fuzzy tooltip text.
1 parent bf82ccd commit d239e5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎dev/src/controls/Tooltip.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ export default class Tooltip {
8787
if (x - w / 2 < pad) { off = pad - x + w / 2; }
8888
else if (x + w / 2 > ww - pad) { off = ww - pad - x - w / 2; }
8989
this.tipEl.style.marginRight = Math.max(-w / 2 + 10, Math.min(w / 2 - 10, off)) * 2 + "px";
90-
elStyle.width = w + "px";
91-
elStyle.top = y + "px";
92-
elStyle.left = (x + off) + "px";
90+
elStyle.width = Math.ceil(w/2)*2 + "px";
91+
elStyle.top = Math.round(y) + "px";
92+
elStyle.left = Math.round(x + off) + "px";
9393
if (this.transition) {
9494
elStyle.opacity = 1;
9595
elStyle.marginTop = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.