Fix broken resizing mail compose's textarea

This commit is contained in:
hadi 2023-04-21 14:16:47 +02:00
parent 4080a60aa2
commit b029d826d9
2 changed files with 2 additions and 3 deletions

View File

@ -4701,8 +4701,7 @@ app.classes.mail = AppJS.extend(
if (textArea.id != "mail_htmltext") if (textArea.id != "mail_htmltext")
{ {
textArea.getParent().set_height(bodySize); textArea.getParent().style.height = `${bodySize}px`;
textArea.set_height(bodySize);
} }
else if (typeof textArea != 'undefined' && textArea.id == 'mail_htmltext') else if (typeof textArea != 'undefined' && textArea.id == 'mail_htmltext')
{ {

View File

@ -142,7 +142,7 @@
<htmlarea name="mail_htmltext" id="mail_htmltext" statusbar="false" menubar="false" toolbar="@html_toolbar" imageUpload="link_to" expand_toolbar="true" height="478px" width="100%" resize_ratio="0"/> <htmlarea name="mail_htmltext" id="mail_htmltext" statusbar="false" menubar="false" toolbar="@html_toolbar" imageUpload="link_to" expand_toolbar="true" height="478px" width="100%" resize_ratio="0"/>
</et2-hbox> </et2-hbox>
<et2-hbox disabled="@is_html" class="mailComposeBody mailComposeTextContainer"> <et2-hbox disabled="@is_html" class="mailComposeBody mailComposeTextContainer">
<et2-textarea rows="40" cols="120" width="100%" span="all" name="mail_plaintext" id="mail_plaintext" noLang="1" resizeRatio="0"></et2-textarea> <et2-textarea width="100%" span="all" name="mail_plaintext" id="mail_plaintext" noLang="1" resizeRatio="0"></et2-textarea>
</et2-hbox> </et2-hbox>
</et2-vbox> </et2-vbox>