From 3e6883bdc03ea102e32061d1faf887f692566a92 Mon Sep 17 00:00:00 2001 From: Moshe Brevda Date: Mon, 16 Mar 2015 13:47:25 +0200 Subject: [PATCH] Use default canvas size if one cannot be intelligently procured --- src/Chart.Core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 5dccd2ef9..6fa0af762 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -37,8 +37,8 @@ } } - var width = this.width = computeDimension(context.canvas,'Width'); - var height = this.height = computeDimension(context.canvas,'Height'); + 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; -- 2.47.2