diff --git a/src/kibana/components/vislib/lib/tooltip.js b/src/kibana/components/vislib/lib/tooltip.js index 56e35342644ff..ce4b0e1c35eb8 100644 --- a/src/kibana/components/vislib/lib/tooltip.js +++ b/src/kibana/components/vislib/lib/tooltip.js @@ -76,9 +76,15 @@ define(function (require) { var tipWidth = tip.outerWidth(); var tipHeight = tip.outerHeight(); + return _.mapValues({ + left: { + default: event.clientX + OFFSET + } + }); + // the placements if we were to place the tip east or west var left = { - east: event.clientX + OFFSET, + east: , west: event.clientX - tipWidth - OFFSET };