Skip to content

Commit

Permalink
fixes issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Brandt committed Mar 29, 2013
1 parent c010ecc commit 590a0ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,12 @@ var Chart = function(context, tooltipOptions){
var yPosition = 0;

while(e) {
xPosition += (e.offsetLeft - e.scrollLeft + e.clientLeft);
yPosition += (e.offsetTop - e.scrollTop + e.clientTop);
xPosition += (e.offsetLeft + e.clientLeft);
yPosition += (e.offsetTop + e.clientTop);
e = e.offsetParent;
}
xPosition -= window.pageXOffset;
yPosition -= window.pageYOffset;
return { x: xPosition, y: yPosition };
}

Expand Down

0 comments on commit 590a0ea

Please # to comment.