]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove Firefox workaround 1771/head
authorRyo ONODERA <ryo_on@yk.rim.or.jp>
Sat, 12 Dec 2015 00:00:12 +0000 (09:00 +0900)
committerRyo ONODERA <ryo_on@yk.rim.or.jp>
Sat, 12 Dec 2015 00:00:12 +0000 (09:00 +0900)
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.

src/Chart.Core.js

index 5b1beb4e0c1ffa2a17b844d4f054c0542a2aae9e..07f2c2088cfe7beb2207cd82867e8be67145482a 100755 (executable)
                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;