Fix setCoords for negative width and/or height

Change-Id: I8ddb8ad49325e593bff15396f76623351e2c5de4
This commit is contained in:
Victor Oliveira 2014-09-22 11:12:22 -03:00
parent 9dbcca6c30
commit 4a51211df9

View file

@ -323,10 +323,10 @@
h = strokeWidth;
}
if (strokeW) {
w += strokeWidth;
w += w > 0 ? strokeWidth : -strokeWidth;
}
if (strokeH) {
h += strokeWidth;
h += h > 0 ? strokeWidth : -strokeWidth;
}
this.currentWidth = w * this.scaleX;
this.currentHeight = h * this.scaleY;