Answer the question
In order to leave comments, you need to log in
Canvas fabric.js: how to set the height correctly?
I am using fabric.js to work with canvas objects. When changing the height separately with the mouse or separately with the field - everything works. If you change it first with the mouse, then with the field, it will start working with false values.
Line 83, 84. Setting values:
canvas.getActiveObject().setHeight(parseInt(heightElInput.value));
canvas.getActiveObject().height = parseInt(heightElInput.value);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question