Fix recent group addition

This commit is contained in:
kangax 2014-02-11 12:47:09 -05:00
parent 7e5b0b8508
commit 0460e4e248
5 changed files with 13 additions and 13 deletions

8
dist/fabric.js vendored
View file

@ -15564,12 +15564,12 @@ fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prot
height = (maxY - minY) || 0;
var obj = {
left: (minX + width / 2) || 0,
top: (minY + height / 2) || 0
width: width,
height: height
};
if (!onlyWidthHeight) {
obj.width = width;
obj.height = height;
obj.left = (minX + width / 2) || 0;
obj.top = (minY + height / 2) || 0;
}
return obj;
},

2
dist/fabric.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/fabric.min.js.gz vendored

Binary file not shown.

View file

@ -15564,12 +15564,12 @@ fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prot
height = (maxY - minY) || 0;
var obj = {
left: (minX + width / 2) || 0,
top: (minY + height / 2) || 0
width: width,
height: height
};
if (!onlyWidthHeight) {
obj.width = width;
obj.height = height;
obj.left = (minX + width / 2) || 0;
obj.top = (minY + height / 2) || 0;
}
return obj;
},

View file

@ -459,12 +459,12 @@
height = (maxY - minY) || 0;
var obj = {
left: (minX + width / 2) || 0,
top: (minY + height / 2) || 0
width: width,
height: height
};
if (!onlyWidthHeight) {
obj.width = width;
obj.height = height;
obj.left = (minX + width / 2) || 0;
obj.top = (minY + height / 2) || 0;
}
return obj;
},