From 0b19689b005bfd873bdc5cc97d9c9d5f5df66c6e Mon Sep 17 00:00:00 2001 From: thebenedict Date: Mon, 6 Jun 2016 17:05:44 +0300 Subject: [PATCH] style canvas element `display: block` by default --- src/core/core.js | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.47.2