mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-10 14:54:42 +00:00
Fix setCoords for negative width and/or height
Change-Id: I8ddb8ad49325e593bff15396f76623351e2c5de4
This commit is contained in:
parent
9dbcca6c30
commit
4a51211df9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue