Linear Scale now plays nice with full width

This commit is contained in:
Tanner Linsley 2015-10-27 02:33:45 -06:00
parent 2bc386ee81
commit ab2c3ce4e9

View File

@ -196,7 +196,7 @@
if (this.isHorizontal()) {
var innerWidth = this.width - (this.paddingLeft + this.paddingRight);
pixel = this.left + (innerWidth / range * (rightValue - this.start));
pixel = this.left + this.margins.left + (innerWidth / range * (rightValue - this.start));
return Math.round(pixel + this.paddingLeft);
} else {
var innerHeight = this.height - (this.paddingTop + this.paddingBottom);