Skip to content

Commit

Permalink
Fix issues with fuzzy tooltip text.
Browse files Browse the repository at this point in the history
  • Loading branch information
gskinner committed Nov 2, 2018
1 parent bf82ccd commit d239e5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/src/controls/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export default class Tooltip {
if (x - w / 2 < pad) { off = pad - x + w / 2; }
else if (x + w / 2 > ww - pad) { off = ww - pad - x - w / 2; }
this.tipEl.style.marginRight = Math.max(-w / 2 + 10, Math.min(w / 2 - 10, off)) * 2 + "px";
elStyle.width = w + "px";
elStyle.top = y + "px";
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";
if (this.transition) {
elStyle.opacity = 1;
elStyle.marginTop = 0;
Expand Down

0 comments on commit d239e5a

Please sign in to comment.