Skip to content

Commit

Permalink
Merge pull request DKirwan#11 from paradite/master
Browse files Browse the repository at this point in the history
add unit to styling
  • Loading branch information
DKirwan committed May 15, 2016
2 parents de857ff + 4b71f18 commit 2559155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/calendar-heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ function calendarHeatmap() {
.append('div')
.attr('class', 'day-cell-tooltip')
.html(tooltipHTMLForDate(d))
.style('left', function () { return Math.floor(i / 7) * SQUARE_LENGTH; })
.style('top', function () { return d.getDay() * (SQUARE_LENGTH + SQUARE_PADDING) + MONTH_LABEL_PADDING * 3; });
.style('left', function() { return Math.floor(i / 7) * SQUARE_LENGTH + 'px'; })
.style('top', function() { return d.getDay() * (SQUARE_LENGTH + SQUARE_PADDING) + MONTH_LABEL_PADDING * 3 + 'px'; });
})
.on('mouseout', function (d, i) {
tooltip.remove();
Expand Down

0 comments on commit 2559155

Please sign in to comment.