M
M
Millerish2017-01-26 19:09:10
JavaScript
Millerish, 2017-01-26 19:09:10

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);

video bug code
Help fix.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question