You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resize horizontally / vertically, and then watch console.
Expected Behavior
For the Circle, everything works fine
For the textbox, it works fine vertically
For the textbox, you get a "not a number" when changing horizontally (missing "e.transform.newScaleX")
All the other resizes works. This is probably due to the fact that the Textbox doesn't "really" rescale as the text is going to fit in the box (object.scaleX always equal to the original given value). But the event launched is still "scaleX", so there is a bug somewhere.
Actual Behavior
At least get a value in "e.transform.newScaleX" ? (so it is possible to calculate the difference of size though this event).
The text was updated successfully, but these errors were encountered:
Yep, I did a workaround checking if the element that is passed is a Textbox, then specifically in this case use the width instead to calculate the value I need. But this is not very clean..
Version
2.4.6
Steps to reproduce
PASTE IN JS FIDDLE: http://jsfiddle.net/fabricjs/Da7SP/
Resize horizontally / vertically, and then watch console.
Expected Behavior
All the other resizes works. This is probably due to the fact that the Textbox doesn't "really" rescale as the text is going to fit in the box (object.scaleX always equal to the original given value). But the event launched is still "scaleX", so there is a bug somewhere.
Actual Behavior
At least get a value in "e.transform.newScaleX" ? (so it is possible to calculate the difference of size though this event).
The text was updated successfully, but these errors were encountered: