Fix getMaximumHeight function to use helpers

This commit is contained in:
Tanner Linsley 2015-06-16 11:24:25 -06:00
parent 37b13265c9
commit cd5a8d1a50
3 changed files with 3 additions and 3 deletions

2
Chart.js vendored
View File

@ -1271,7 +1271,7 @@
this.stop();
var canvas = this.chart.canvas,
newWidth = helpers.getMaximumWidth(this.chart.canvas),
newHeight = this.options.maintainAspectRatio ? newWidth / this.chart.aspectRatio : getMaximumHeight(this.chart.canvas);
newHeight = this.options.maintainAspectRatio ? newWidth / this.chart.aspectRatio : helpers.getMaximumHeight(this.chart.canvas);
canvas.width = this.chart.width = newWidth;
canvas.height = this.chart.height = newHeight;

2
Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,7 @@
this.stop();
var canvas = this.chart.canvas,
newWidth = helpers.getMaximumWidth(this.chart.canvas),
newHeight = this.options.maintainAspectRatio ? newWidth / this.chart.aspectRatio : getMaximumHeight(this.chart.canvas);
newHeight = this.options.maintainAspectRatio ? newWidth / this.chart.aspectRatio : helpers.getMaximumHeight(this.chart.canvas);
canvas.width = this.chart.width = newWidth;
canvas.height = this.chart.height = newHeight;