mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-11 23:33:10 +00:00
Fix group origin after toJSON
This commit is contained in:
parent
a80502f957
commit
be96d93f6e
1 changed files with 4 additions and 1 deletions
|
|
@ -888,7 +888,10 @@
|
|||
fabric.util.populateWithProperties(this, data, propertiesToInclude);
|
||||
|
||||
if (activeGroup) {
|
||||
this.setActiveGroup(new fabric.Group(activeGroup.getObjects()));
|
||||
this.setActiveGroup(new fabric.Group(activeGroup.getObjects(), {
|
||||
originX: 'center',
|
||||
originY: 'center'
|
||||
}));
|
||||
activeGroup.forEachObject(function(o) {
|
||||
o.set('active', true);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue