Skip to content

Commit

Permalink
Added tooltip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Damith authored and Damith committed Feb 17, 2016
1 parent 3e1a0bc commit 7ec06fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/chart.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ function bindTooltip(div,markType,eventObj, config, metaData, keyList){
if (item != null && item.status != "exit" && item.mark.marktype == markType) {
var canvas = $(".marks")[0];

if($("#wrapper #tip").length) {
$tip.remove();
}

$(div).wrap( "<div id='wrapper' style='position: relative'></div>" );

$("#wrapper").append("<div id='tip' class='tooltipClass' style='top:0; left: 0; position: absolute'></div>");
Expand Down

0 comments on commit 7ec06fe

Please sign in to comment.