Susimail: Fix initialization of textarea height

This commit is contained in:
zzz
2024-04-04 12:34:12 -04:00
parent 50ec9d34a1
commit 1bc4464444

View File

@@ -10,6 +10,7 @@ function initTextarea() {
tx.removeAttribute("rows");
tx.style.height = 0;
tx.setAttribute("style", "height:" + Math.max(225, tx.scrollHeight) + "px;overflow-y:hidden;");
tx.style.height = Math.max(225, tx.scrollHeight) + "px";
tx.addEventListener("input", onTextareaInput, false);
}