]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixed built-in auto skip caused by previous commit (#3904)
authorJerry Chang <therealjerrycan@gmail.com>
Sun, 19 Feb 2017 02:34:08 +0000 (18:34 -0800)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 25 Feb 2017 17:12:41 +0000 (12:12 -0500)
src/core/core.scale.js

index b7d043547559214fcf722bf5f26ec5efdc93cffd..4584f0427116f4eec5d8fecaa0a1a8593becb0a9 100644 (file)
@@ -521,12 +521,6 @@ module.exports = function(Chart) {
                        if (isHorizontal) {
                                skipRatio = false;
 
-                               // Only calculate the skip ratio with the half width of longestRotateLabel if we got an actual rotation
-                               // See #2584
-                               if (isRotated) {
-                                       longestRotatedLabel /= 2;
-                               }
-
                                if ((longestRotatedLabel + optionTicks.autoSkipPadding) * me.ticks.length > (me.width - (me.paddingLeft + me.paddingRight))) {
                                        skipRatio = 1 + Math.floor(((longestRotatedLabel + optionTicks.autoSkipPadding) * me.ticks.length) / (me.width - (me.paddingLeft + me.paddingRight)));
                                }