Skip to content

Commit

Permalink
Fixed #8607, tooltip masked by scrollablePlotArea
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed May 24, 2019
1 parent 932df4f commit 48a82ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/parts/Tooltip.js
Expand Up @@ -228,8 +228,11 @@ H.Tooltip.prototype = {
* Split tooltip does not support outside in the first iteration. Should
* not be too complicated to implement.
*/
this.outside = options.outside && !this.split;

this.outside = (
options.outside ||
chart.scrollablePixelsX ||
chart.scrollablePixelsY
) && !this.split;
},

/**
Expand Down Expand Up @@ -331,7 +334,8 @@ H.Tooltip.prototype = {
H.css(container, {
position: 'absolute',
top: '1px',
pointerEvents: options.style && options.style.pointerEvents
pointerEvents: options.style && options.style.pointerEvents,
zIndex: 3
});
H.doc.body.appendChild(container);

Expand Down

0 comments on commit 48a82ce

Please sign in to comment.