Bug 1571663 - fix height of attachment pane. r=Paenglab DONTBUILD
authorAlessandro Castellani <alessandro@thunderbird.net>
Tue, 06 Aug 2019 14:19:26 -0700
changeset 27272 5d12044b62791579e791dad9c6a3871f9db930db
parent 27271 21e4751b03ef69fb7dbb1d9c3d6f47e8abdae3bb
child 27273 4e9163b13c8f6953238bc698c7b4544961be8f0a
push id16263
push usermozilla@jorgk.com
push dateWed, 07 Aug 2019 10:00:26 +0000
treeherdercomm-central@5d12044b6279 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersPaenglab
bugs1571663
Bug 1571663 - fix height of attachment pane. r=Paenglab DONTBUILD
mail/base/content/attachmentList.css
mail/base/content/msgAttachmentView.inc.xul
--- a/mail/base/content/attachmentList.css
+++ b/mail/base/content/attachmentList.css
@@ -1,12 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+.attachments-container {
+  display: block;
+}
+
 .attachmentList {
   -moz-appearance: listbox;
   -moz-user-focus: normal;
   margin: 0;
   padding: 3px;
 }
 
 .attachmentList[orient="horizontal"] {
--- a/mail/base/content/msgAttachmentView.inc.xul
+++ b/mail/base/content/msgAttachmentView.inc.xul
@@ -89,18 +89,19 @@
                                               label="&deleteAllAttachmentsCmd.label;"
                                               accesskey="&deleteAllAttachmentsCmd.accesskey;"/>
                                   </menupopup>
                                 </toolbarbutton>
                               </toolbaritem>
                             </hbox>
                           </vbox>
                         </hbox>
-                        <richlistbox is="attachment-list" id="attachmentList"
-                                     class="attachmentList"
-                                     orient="horizontal"
-                                     seltype="multiple"
-                                     flex="1"
-                                     context="attachmentListContext"
-                                     itemcontext="attachmentItemContext"
-                                     role="listbox"
-                                     ondragstart="nsDragAndDrop.startDrag(event, attachmentListDNDObserver);"
-                                     ondragover="nsDragAndDrop.dragOver(event, attachmentListDNDObserver);"/>
+                        <hbox class="attachments-container">
+                          <richlistbox is="attachment-list" id="attachmentList"
+                                       class="attachmentList"
+                                       orient="horizontal"
+                                       seltype="multiple"
+                                       context="attachmentListContext"
+                                       itemcontext="attachmentItemContext"
+                                       role="listbox"
+                                       ondragstart="nsDragAndDrop.startDrag(event, attachmentListDNDObserver);"
+                                       ondragover="nsDragAndDrop.dragOver(event, attachmentListDNDObserver);"/>
+                        </hbox>