app/assets/javascripts/highcharts/modules/static-scale.js in highcharts-rails-6.0.1 vs app/assets/javascripts/highcharts/modules/static-scale.js in highcharts-rails-6.0.2

- old
+ new

@@ -1,7 +1,7 @@ /** - * @license Highcharts JS v6.0.1 (2017-10-05) + * @license Highcharts JS v6.0.2 (2017-10-20) * StaticScale * * (c) 2016 Torstein Honsi, Lars A. V. Cabrera * * --- WORK IN PROGRESS --- @@ -56,9 +56,13 @@ } }); this.initiatedScale = true; }; - H.addEvent(Chart.prototype, 'render', Chart.prototype.adjustHeight); + Chart.prototype.callbacks.push(function(chart) { + H.addEvent(this, 'render', function() { + chart.adjustHeight(); + }); + }); }(Highcharts)); }));