Vertical text resize
THIS PAGE IS ABOUT EXPERIMENTAL FEATURES OF POLOTNO!
Please use it carefully. Watch changelog for any changes! And report about any bugs.
By default, you can't change height
of text
elements. Texts are always updating its own height to fit its content.
However, in some application you may want to change this behavior. The most common example is ability to set bounding box for text elements and later replace text content dynamically on the backend.
When vertical resize is enabled you can also set vertical align from the text toolbar.
How to enabled vertical text resize?
Use this:
import { unstable_setTextVerticalResizeEnabled } from 'polotno/config';
unstable_setTextVerticalResizeEnabled(true);