Skip to content

Commit

Permalink
Fix for textbox non defined in scaleObject (#5896)
Browse files Browse the repository at this point in the history
* fix for #5850
  • Loading branch information
asturur authored Nov 18, 2019
1 parent 5b75cf1 commit edf821a
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 edf821a

Please sign in to comment.