Bug 1233709 - Action bar overflow menu sometimes appears with only one item, r=mcomella a=sylvestre
authorMark Capella <markcapella@twcny.rr.com>
Tue, 22 Dec 2015 21:47:50 -0500
changeset 310538 5628bb302871093c80ec07151250cdf7873df3d3
parent 310537 3a7dd4e7fa23a2f848bd0b503312409a808cd63d
child 310539 0786a97aee59b4d3f32c35351c92c4be858d7e55
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella, sylvestre
bugs1233709
milestone45.0a2
Bug 1233709 - Action bar overflow menu sometimes appears with only one item, r=mcomella a=sylvestre
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>