Bug 856040 - Adjust padding of XUL menulist to match native widget on Windows 7 and up. r=fryn ui-r=fryn
authorRichard Marti <richard.marti@gmail.com>
Mon, 01 Apr 2013 10:09:44 +0200
changeset 127238 96a67be7802b21d29f8b338c8086621ad86efa54
parent 127237 206bb159d62ffb02f39640cb7c4ec68903f27356
child 127239 eca6757e918af9e8f665e915dcbce400ca823c7d
push id1651
push userjandemooij@gmail.com
push dateMon, 01 Apr 2013 19:51:43 +0000
reviewersfryn, fryn
bugs856040
milestone22.0a1
Bug 856040 - Adjust padding of XUL menulist to match native widget on Windows 7 and up. r=fryn ui-r=fryn
toolkit/themes/windows/global/menulist-aero.css
toolkit/themes/windows/global/menulist.css
--- a/toolkit/themes/windows/global/menulist-aero.css
+++ b/toolkit/themes/windows/global/menulist-aero.css
@@ -9,9 +9,26 @@ menulist:-moz-focusring:not([open="true"
   border: 1px dotted ThreeDDarkShadow;
 }
 
 @media (-moz-windows-default-theme) {
   .menulist-label-box {
     background-color: transparent !important;
     color: inherit !important;
   }
+
+  .menulist-label {
+    margin-top: -1px !important;
+    margin-bottom: -1px !important;
+    -moz-margin-start: 0 !important;
+  }
+
+  .menulist-dropmarker {
+    margin-top: -2px;
+    -moz-margin-start: 3px;
+    -moz-margin-end: -3px;
+  }
+
+  .menulist-icon {
+    margin-top: -1px;
+    margin-bottom: -1px;
+  }
 }
--- a/toolkit/themes/windows/global/menulist.css
+++ b/toolkit/themes/windows/global/menulist.css
@@ -23,23 +23,19 @@ menulist {
   color: -moz-FieldText;
   text-shadow: none;
 }
 
 .menulist-label-box {
   -moz-box-align: center;
   -moz-box-pack: center;
   margin: 1px;
-}
-
-.menulist-label-box {
   border: 1px solid transparent;
   background-color: transparent;
   color: inherit;
-  -moz-box-align: center;
 }
 
 .menulist-icon[src] {
   margin: 0px 2px 0px 2px;
 }
 
 .menulist-label {
   margin-top: 0 !important;