[regression] Bug 641006 - Select elements doesn't crop [r=mfinkle,a=approval2.0+]
authorVivien Nicolas <21@vingtetun.org>
Fri, 11 Mar 2011 22:52:06 +0100
changeset 67504 b9601dd729b9aa2731bd50bb75d7ee9a89e5f8f0
parent 67503 66f9fa8cacba20e831423bd42568c5c38574fbbb
child 67505 cc633f9983cc9ef2268977272f1bc6b5d4221ed5
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, approval2
bugs641006
[regression] Bug 641006 - Select elements doesn't crop [r=mfinkle,a=approval2.0+]
mobile/themes/core/forms.css
--- a/mobile/themes/core/forms.css
+++ b/mobile/themes/core/forms.css
@@ -206,16 +206,21 @@
 
 #select-commands {
   background: transparent;
   border-top: @border_width_tiny@ solid rgb(205,205,205);
   padding: 0;
   -moz-user-focus: ignore;
 }
 
+/* listcell elements doesn't have flex="1" so we need to force it */
+#select-commands .option-command > listcell {
+  -moz-box-flex: 1 !important;
+}
+
 /* menulist popup ---------------------------------------------------------- */
 #menulist-commands {
   display: -moz-box;
 }
 
 /* Common style for Select & Menulist -------------------------------------- */
 .options-title {
   padding: @padding_xxnormal@ @padding_small@ @padding_small@ @padding_small@;
@@ -234,14 +239,15 @@
 
 .option-command.selected {
   list-style-image: url("chrome://browser/skin/images/check-30.png");
 }
 
 .option-command.optgroup {
   font-weight: bold;
   font-style: italic;
+  pointer-events: none;
 }
 
 .option-command .in-optgroup {
   -moz-padding-start: -moz-calc(30px + @padding_large@);
 }