Fixes resize() function

This commit is contained in:
Mathias Küsel 2016-01-18 17:46:11 +01:00
parent 00913be944
commit 33303d8d8a

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);
}