Bug 1607477 - Fix resizing of "Insert HTML" window by adding a "flex: auto;" to the html:textarea. r=mkmelin
authorRichard Marti <richard.marti@gmail.com>
Tue, 07 Jan 2020 18:10:21 +0100
changeset 37050 50bf5e8f61195e417dc5acac1573c1acad20613e
parent 37049 807fb40cb098724ffe7f938946646c2a01f8c74a
child 37051 2b181852252306b7d6519c6e5c8f6ca5d63c4826
push id2552
push userclokep@gmail.com
push dateMon, 10 Feb 2020 21:24:16 +0000
treeherdercomm-beta@f95a6f4408a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs1607477
Bug 1607477 - Fix resizing of "Insert HTML" window by adding a "flex: auto;" to the html:textarea. r=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;"/>