Bug 1233709 - Action bar overflow menu sometimes appears with only one item, r=mcomella a=ritu
authorMark Capella <markcapella@twcny.rr.com>
Tue, 22 Dec 2015 21:47:50 -0500
changeset 305947 2bb74ed66aae63278ac9b0c648fe47563446b7c5
parent 305946 4c66ae0b0b91d82bf13b518f37c8c0c0c88bd141
child 305948 c095db94eec49aaabbded18d6269d1697234b126
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella, ritu
bugs1233709
milestone44.0
Bug 1233709 - Action bar overflow menu sometimes appears with only one item, r=mcomella a=ritu
mobile/android/base/resources/values-v11/styles.xml
--- a/mobile/android/base/resources/values-v11/styles.xml
+++ b/mobile/android/base/resources/values-v11/styles.xml
@@ -83,16 +83,20 @@
 
     <style name="TextAppearance.Widget.ActionBar.Title" parent="@android:style/TextAppearance.Medium"/>
 
     <style name="GeckoActionBar.Title" parent="TextAppearance.Widget.ActionBar.Title">
         <item name="android:drawableLeft">@drawable/ab_done</item>
         <item name="android:background">@android:color/transparent</item>
         <item name="android:paddingLeft">15dp</item>
         <item name="android:paddingRight">15dp</item>
+        <!-- gravity and minWidth are added here to more resemble our values/styles.xml
+             counterpart. This is solely to correct bug 1233709 -->
+        <item name="android:gravity">center_vertical</item>
+        <item name="android:minWidth">0dp</item>
     </style>
 
     <style name="GeckoActionBar.Button" parent="android:style/Widget.Holo.Light.ActionButton">
         <item name="android:padding">8dip</item>
         <!-- The default implementation doesn't do any image scaling. Our custom menus mean we can't just use the same image
              in both menus and the actionbar without doing some scaling though. -->
         <item name="android:scaleType">centerInside</item>
     </style>