Skip to content

Commit

Permalink
Use scaled canvas dimensions (#2972)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed May 15, 2016
1 parent 0297041 commit 11fd746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/object.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 11fd746

Please sign in to comment.