Skip to content

Commit

Permalink
Change tooltip position to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Manoj committed Jun 28, 2019
1 parent 0125c4b commit d57b766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/components/15_ImageMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ Ensembl.Panel.ImageMap = Ensembl.Panel.Content.extend({
tip = area.a.attrs.alt;

if (!panel.elLk.helpTip) {
panel.elLk.helpTip = $('<div class="ui-tooltip helptip-bottom"><div class="ui-tooltip-content"></div></div>');
panel.elLk.helpTip = $('<div class="ui-tooltip helptip-top"><div class="ui-tooltip-content"></div></div>');
}

panel.elLk.helpTip.children().html(tip).end().appendTo('body').position({
of: { pageX: panel.imgOffset.left + area.l + 10, pageY: panel.imgOffset.top + area.t - 48, preventDefault: true }, // fake an event
of: { pageX: panel.imgOffset.left + area.l + 10 , pageY: panel.imgOffset.top + area.b + (area.b -area.t) - 15, preventDefault: true }, // fake an event
my: 'center top'
});
}
Expand Down

0 comments on commit d57b766

Please sign in to comment.