]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Category Scale display false fixes
authorTanner Linsley <tannerlinsley@gmail.com>
Sat, 13 Jun 2015 06:30:42 +0000 (00:30 -0600)
committerTanner Linsley <tannerlinsley@gmail.com>
Sat, 13 Jun 2015 06:30:42 +0000 (00:30 -0600)
src/scales/scale.category.js

index f20457c4a747624222e4944c4dbc6d8ffe1fabb9..c0e9ada5f2b5bf28df354e92c61f726a4c5e9de7 100644 (file)
                        }
 
                        // Height
-                       if (this.isHorizontal()) {
+                       if (this.isHorizontal() && this.options.display) {
                                var labelHeight = (Math.cos(helpers.toRadians(this.labelRotation)) * longestLabelWidth) + 1.5 * this.options.labels.fontSize;
                                minSize.height = Math.min(labelHeight, maxHeight);
                        } else if (this.options.display) {