Merge pull request #1911 from mathiask88/fixResize

Fixes resize() function
This commit is contained in:
Evert Timberg
2016-01-18 12:50:46 -05:00

View File

@@ -90,12 +90,15 @@
var sizeChanged = this.chart.width !== newWidth || this.chart.height !== newHeight;
if (!sizeChanged)
return this;
canvas.width = this.chart.width = newWidth;
canvas.height = this.chart.height = newHeight;
helpers.retinaScale(this.chart);
if (!silent && sizeChanged) {
if (!silent) {
this.stop();
this.update(this.options.responsiveAnimationDuration);
}