Skip to content

Commit

Permalink
Fix #62
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Dec 3, 2013
1 parent f6a6abd commit 12ebf1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cal-heatmap.js
Expand Up @@ -581,7 +581,10 @@ var CalHeatMap = function() {
self.root = d3.select(self.options.itemSelector).append("svg").attr("class", "cal-heatmap-container");

self.tooltip = d3.select(self.options.itemSelector)
.attr("style", d3.select(self.options.itemSelector).attr("style") + "position:relative;")
.attr("style", function() {
var current = d3.select(self.options.itemSelector).attr("style");
return (current !== null ? current : "") + "position:relative;";
})
.append("div")
.attr("class", "ch-tooltip")
;
Expand Down

0 comments on commit 12ebf1f

Please sign in to comment.