]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
style canvas element `display: block` by default 2716/head
authorthebenedict <thebenedict@gmail.com>
Mon, 6 Jun 2016 14:05:44 +0000 (17:05 +0300)
committerthebenedict <thebenedict@gmail.com>
Mon, 6 Jun 2016 14:05:44 +0000 (17:05 +0300)
src/core/core.js

index 569969b4250c160922c82b8aec207c0600ad166f..80e82f365d09b0292c59ad16a6c4394ae64d95a0 100755 (executable)
@@ -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.