diff --git a/src/shapes/object.class.js b/src/shapes/object.class.js index adc62bc4322..161e8ae238d 100644 --- a/src/shapes/object.class.js +++ b/src/shapes/object.class.js @@ -1333,7 +1333,7 @@ }; this.set('active', false); - this.setPositionByOrigin(new fabric.Point(el.width / 2, el.height / 2), 'center', 'center'); + this.setPositionByOrigin(new fabric.Point(canvas.getWidth() / 2, canvas.getHeight() / 2), 'center', 'center'); var originalCanvas = this.canvas; canvas.add(this);