From: Ryo ONODERA Date: Sat, 12 Dec 2015 00:00:12 +0000 (+0900) Subject: Remove Firefox workaround X-Git-Tag: v1.1.0~26^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1771%2Fhead;p=thirdparty%2FChart.js.git Remove Firefox workaround The workaround for older Firefox should be removed, because latest supported Firefox 38.4.0/42.0 do not require it. And it has side effect like #1198 or my problem on Kintone on cybozu.com. --- diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 5b1beb4e0..07f2c2088 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -40,10 +40,6 @@ var width = this.width = computeDimension(context.canvas,'Width') || context.canvas.width; var height = this.height = computeDimension(context.canvas,'Height') || context.canvas.height; - // Firefox requires this to work correctly - context.canvas.width = width; - context.canvas.height = height; - width = this.width = context.canvas.width; height = this.height = context.canvas.height; this.aspectRatio = this.width / this.height;