style canvas element display: block by default

This commit is contained in:
thebenedict
2016-06-06 17:05:44 +03:00
parent a4ac33df5d
commit 0b19689b00

View File

@@ -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.