mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-19 14:46:51 +01:00
style canvas element display: block by default
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user