From: thebenedict Date: Mon, 6 Jun 2016 14:05:44 +0000 (+0300) Subject: style canvas element `display: block` by default X-Git-Tag: v2.1.5~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2716%2Fhead;p=thirdparty%2FChart.js.git style canvas element `display: block` by default --- diff --git a/src/core/core.js b/src/core/core.js index 569969b42..80e82f365 100755 --- a/src/core/core.js +++ b/src/core/core.js @@ -21,6 +21,8 @@ module.exports = function() { me.ctx = context; me.canvas = context.canvas; + context.canvas.style.display = context.canvas.style.display || 'block'; + // Figure out what the size of the chart will be. // If the canvas has a specified width and height, we use those else // we look to see if the canvas node has a CSS width and height.