From 3203a2b90e7f3a38c478401f044fa194c6730d7f Mon Sep 17 00:00:00 2001 From: hadi Date: Fri, 21 Apr 2023 14:16:47 +0200 Subject: [PATCH] Fix broken resizing mail compose's textarea --- mail/js/app.js | 3 +-- mail/templates/default/compose.xet | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 0862d07293..70a4666b61 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -4701,8 +4701,7 @@ app.classes.mail = AppJS.extend( if (textArea.id != "mail_htmltext") { - textArea.getParent().set_height(bodySize); - textArea.set_height(bodySize); + textArea.getParent().style.height = `${bodySize}px`; } else if (typeof textArea != 'undefined' && textArea.id == 'mail_htmltext') { diff --git a/mail/templates/default/compose.xet b/mail/templates/default/compose.xet index 7399f60021..576a70eb02 100644 --- a/mail/templates/default/compose.xet +++ b/mail/templates/default/compose.xet @@ -142,7 +142,7 @@ - +