Skip to content

Commit

Permalink
Addition to #8607
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed May 22, 2019
1 parent 5beb252 commit 570e00b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
7 changes: 5 additions & 2 deletions js/parts/Options.js
Expand Up @@ -2845,11 +2845,14 @@ H.defaultOptions = {
* overlaid on the page, allowing the tooltip to be aligned inside the
* page itself.
*
* Defaults to `true` if `chart.scrollablePlotArea` is activated,
* otherwise `false`.
*
* @sample highcharts/tooltip/outside
* Small charts with tooltips outside
*
* @type {boolean}
* @default false
* @type {boolean|undefined}
* @default undefined
* @since 6.1.1
* @apioption tooltip.outside
*/
Expand Down
10 changes: 6 additions & 4 deletions js/parts/Tooltip.js
Expand Up @@ -229,10 +229,12 @@ H.Tooltip.prototype = {
* not be too complicated to implement.
*/
this.outside = (
options.outside ||
chart.scrollablePixelsX ||
chart.scrollablePixelsY
) && !this.split;
pick(
options.outside,
Boolean(chart.scrollablePixelsX || chart.scrollablePixelsY)
) &&
!this.split
);
},

/**
Expand Down
7 changes: 5 additions & 2 deletions ts/parts/Options.ts
Expand Up @@ -3368,11 +3368,14 @@ H.defaultOptions = {
* overlaid on the page, allowing the tooltip to be aligned inside the
* page itself.
*
* Defaults to `true` if `chart.scrollablePlotArea` is activated,
* otherwise `false`.
*
* @sample highcharts/tooltip/outside
* Small charts with tooltips outside
*
* @type {boolean}
* @default false
* @type {boolean|undefined}
* @default undefined
* @since 6.1.1
* @apioption tooltip.outside
*/
Expand Down

0 comments on commit 570e00b

Please sign in to comment.