Category Scale now plays nice with full width

This commit is contained in:
Tanner Linsley 2015-10-27 02:33:34 -06:00
parent 15ff3f9edc
commit 2bc386ee81

View File

@ -30,7 +30,7 @@
widthOffset += (valueWidth / 2);
}
return this.left + Math.round(widthOffset);
return this.left + this.margins.left + Math.round(widthOffset);
} else {
var innerHeight = this.height - (this.paddingTop + this.paddingBottom);
var valueHeight = innerHeight / Math.max((this.data.labels.length - ((this.options.gridLines.offsetGridLines) ? 0 : 1)), 1);