Skip to content

Commit

Permalink
Fix for textbox non defined in scaleObject (fabricjs#5896)
Browse files Browse the repository at this point in the history
* fix for fabricjs#5850
  • Loading branch information
asturur authored Nov 18, 2019
1 parent 56e51c8 commit 47cd01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@

transform.newScaleX = scaleX;
transform.newScaleY = scaleY;
if (by === 'x' && target instanceof fabric.Textbox) {
if (fabric.Textbox && by === 'x' && target instanceof fabric.Textbox) {
var w = target.width * (localMouse.x / _dim.x);
if (w >= target.getMinWidth()) {
scaled = w !== target.width;
Expand Down

0 comments on commit 47cd01d

Please sign in to comment.