Skip to content

Commit

Permalink
Fixed #8627, demo for legend navigation was not working correctly on …
Browse files Browse the repository at this point in the history
…Windows.
  • Loading branch information
KacperMadej committed Jul 23, 2018
1 parent e9082f1 commit 1511287
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions samples/highcharts/legend/navigation-enabled-false/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ Highcharts.setOptions({ // Apply the exporting height to print as well
beforePrint: function () {
var height = this.options.exporting.chartOptions.chart.height;
if (height) {
this.oldhasUserSize = this.hasUserSize;
this.resetParams = [this.chartWidth, this.chartHeight, false];
this.setSize(this.chartWidth, height, false);
}
},
afterPrint: function () {
if (this.options.exporting.chartOptions.chart.height) {
this.setSize.apply(this, this.resetParams);
this.hasUserSize = this.oldhasUserSize;
}
}
}
Expand Down Expand Up @@ -77,7 +75,7 @@ Highcharts.chart('container', {
exporting: {
chartOptions: {
chart: {
height: 600
height: 650
}
}
}
Expand Down

0 comments on commit 1511287

Please sign in to comment.