Copy link to clipboard
Copied
I try to work with variable font size in multiline textfield. The auto font size property is insufficient because i want to specify a max and min font size (default seems to be 12 and 4 respectively).
Since there appears a marker and scrollbar once a textfield starts to overflow or input is disabled on non scrollable textfields, i had the idea to implement a custom javascript solution. However i was unable to find a property or event which conforms to this described beahviour in the javascript documentation.
Perhaps someone can point me in the right direction or otherwise can confirm that indeed there is no such feature.
Cheers.
There are no min/max font size options, but there is a "fieldFull" property of the event object. Here's the reference entry:
It's tricky to use. But a script can detect when a field overflows, modify the field parameters and try to re-detect if the field is still over. The key concept is that this is tricky stuff.
Copy link to clipboard
Copied
There are no min/max font size options, but there is a "fieldFull" property of the event object. Here's the reference entry:
It's tricky to use. But a script can detect when a field overflows, modify the field parameters and try to re-detect if the field is still over. The key concept is that this is tricky stuff.