Skip to content

Commit

Permalink
removes max #40
Browse files Browse the repository at this point in the history
  • Loading branch information
1wheel committed Sep 15, 2017
1 parent 80c880d commit 8b3be05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attachTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function(sel, tooltipSel, fieldFns){
y = e.clientY,
bb = tooltipSel.node().getBoundingClientRect(),
left = clamp(20, (x-bb.width/2), window.innerWidth - bb.width - 20),
top = innerHeight - y - 20 > bb.height ? y + 20 : y - bb.height - 20
top = innerHeight > y + 20 + bb.height ? y + 20 : y - bb.height - 20;

tooltipSel
.style('left', left +'px')
Expand Down

0 comments on commit 8b3be05

Please sign in to comment.