We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf82ccd commit d239e5aCopy full SHA for d239e5a
dev/src/controls/Tooltip.js
@@ -87,9 +87,9 @@ export default class Tooltip {
87
if (x - w / 2 < pad) { off = pad - x + w / 2; }
88
else if (x + w / 2 > ww - pad) { off = ww - pad - x - w / 2; }
89
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";
+ elStyle.width = Math.ceil(w/2)*2 + "px";
+ elStyle.top = Math.round(y) + "px";
+ elStyle.left = Math.round(x + off) + "px";
93
if (this.transition) {
94
elStyle.opacity = 1;
95
elStyle.marginTop = 0;
0 commit comments