Show textarea as editable
This commit is contained in:
parent
f85344824a
commit
e1b5ae7835
1 changed files with 51 additions and 8 deletions
|
|
@ -225,7 +225,8 @@ function resizeTextAreas(): void {
|
|||
|
||||
function autoResize(textarea: HTMLTextAreaElement): void {
|
||||
textarea.style.height = 'auto';
|
||||
textarea.style.height = textarea.scrollHeight + 'px';
|
||||
const borderHeight = textarea.offsetHeight - textarea.clientHeight;
|
||||
textarea.style.height = textarea.scrollHeight + borderHeight + 'px';
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue