]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Dont set autoSkip false if userCallback is defined
authorMattias Lyckne <mattias@lyckne.se>
Mon, 21 Dec 2015 12:59:29 +0000 (13:59 +0100)
committerMattias Lyckne <mattias@lyckne.se>
Mon, 21 Dec 2015 12:59:29 +0000 (13:59 +0100)
”The reason being is that the user could replace either callback or
userCallbac”

src/core/core.scale.js

index aa8b79d3e0451d223b5be22f7a23442f87d0313f..42845ebd4a69a277f5e5dc10b4d4d4e918557f6f 100644 (file)
                                var scaleLabelY;
                                var useAutoskipper = this.options.ticks.autoSkip;
 
-                               if(this.options.ticks.userCallback) {
-                                       useAutoskipper = false;
-                               }
-
                                // Make sure we draw text in the correct color and font
                                this.ctx.fillStyle = this.options.ticks.fontColor;
                                var labelFont = helpers.fontString(this.options.ticks.fontSize, this.options.ticks.fontStyle, this.options.ticks.fontFamily);