Bug 1607477 - Fix resizing of "Insert HTML" window by adding a "flex: auto;" to the html:textarea. r+a=mkmelin
authorRichard Marti <richard.marti@gmail.com>
Tue, 07 Jan 2020 18:10:21 +0100
changeset 36996 3ccd1aa54a24f6a6c56edb4c257f87007941b2aa
parent 36995 6a6d427d1bd3089991f202b850a1e4481c233ee9
child 36997 58449de9c7ce74770103e0b101bc3846f6aa5cc4
push id2545
push usergeoff@darktrojan.net
push dateWed, 15 Jan 2020 21:10:47 +0000
treeherdercomm-beta@d7e99ea4d5ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1607477
Bug 1607477 - Fix resizing of "Insert HTML" window by adding a "flex: auto;" to the html:textarea. r+a=mkmelin
mail/components/compose/content/dialogs/EdInsSrc.xhtml
--- a/mail/components/compose/content/dialogs/EdInsSrc.xhtml
+++ b/mail/components/compose/content/dialogs/EdInsSrc.xhtml
@@ -21,18 +21,18 @@
   <script src="chrome://global/content/editMenuOverlay.js"/>
   <script src="chrome://messenger/content/messengercompose/editorUtilities.js"/>
   <script src="chrome://messenger/content/messengercompose/EdDialogCommon.js"/>
   <script src="chrome://messenger/content/messengercompose/EdInsSrc.js"/>
 
   <spacer id="location" offsetY="50" persist="offsetX offsetY"/>
 
   <label id="srcMessage" value="&sourceEditField.label;"/>
-  <vbox flex="1" style="width: 30em; height: 20em;">
-    <html:textarea id="srcInput" rows="18" flex="1"/>
+  <vbox flex="1" style="display: flex; width: 30em; height: 20em;">
+    <html:textarea id="srcInput" style="flex: auto;"/>
   </vbox>
   <!-- Will this accept the embedded HTML tags? -->
   <hbox>
     <spacer class="bigspacer"/>
     <label value="&example.label;"/>
     <label class="bold" value="&exampleOpenTag.label;"/>
     <label class="bold italic" value="&exampleText.label;"/>
     <label class="bold" value="&exampleCloseTag.label;"/>