Skip to content

Commit

Permalink
Revert commit 899e789 since 8a9687f fixed the tooltip position issue
Browse files Browse the repository at this point in the history
  • Loading branch information
neveldo committed Oct 27, 2015
1 parent 476fbba commit f1e8758
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions js/jquery.mapael.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
return this.each(function() {

var $self = $(this)
, $container = $("." + options.map.cssClass, this).empty()
, $tooltip = $("<div>").addClass(options.map.tooltip.cssClass).css("display", "none").appendTo(options.map.tooltip.target || $container)
, $tooltip = $("<div>").addClass(options.map.tooltip.cssClass).css("display", "none")
, $container = $("." + options.map.cssClass, this).empty().append($tooltip)
, mapConf = $.fn.mapael.maps[options.map.name]
, paper = new Raphael($container[0], mapConf.width, mapConf.height)
, elemOptions = {}
Expand Down Expand Up @@ -713,7 +713,7 @@
tooltipPosition.top = y - $container.offset().top + 20;
}
}

$tooltip.css(tooltipPosition);
};

Expand Down Expand Up @@ -1331,8 +1331,7 @@
map : {
cssClass : "map"
, tooltip : {
cssClass : "mapTooltip",
target: null
cssClass : "mapTooltip"
}
, defaultArea : {
attrs : {
Expand Down

0 comments on commit f1e8758

Please sign in to comment.