mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-09 22:34:43 +00:00
Use scaled canvas dimensions (#2972)
This commit is contained in:
parent
0297041e2f
commit
11fd746c1e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue