diff --git a/src/mixins/object_geometry.mixin.js b/src/mixins/object_geometry.mixin.js index f47704f3..1bddeca6 100644 --- a/src/mixins/object_geometry.mixin.js +++ b/src/mixins/object_geometry.mixin.js @@ -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;