From bade753fe3a476fdadc6f1f2196e001964846759 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Fri, 28 Aug 2015 15:12:35 -0600 Subject: [PATCH] Don't account for paddingLeft until after rotated --- src/scales/scale.category.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scales/scale.category.js b/src/scales/scale.category.js index 7912f8dcb..38a69c92e 100644 --- a/src/scales/scale.category.js +++ b/src/scales/scale.category.js @@ -126,7 +126,7 @@ var datasetWidth = Math.floor(this.getPixelForValue(0, 1) - this.getPixelForValue(0, 0)) - 6; //Max label rotation can be set or default to 90 - also act as a loop counter - while (this.labelWidth > (datasetWidth + this.paddingLeft) && this.labelRotation <= this.options.labels.maxRotation) { + while (this.labelWidth > datasetWidth && this.labelRotation <= this.options.labels.maxRotation) { cosRotation = Math.cos(helpers.toRadians(this.labelRotation)); sinRotation = Math.sin(helpers.toRadians(this.labelRotation));