Bug 1394361 - Tab title is cropped and not align to close button. r?jwu draft
authorNevin Chen <cnevinchen@gmail.com>
Tue, 29 Aug 2017 15:12:21 +0800
changeset 655513 320ee4fdeece4482760de0cd42549e4c95358ede
parent 654592 1b4c59eef820b46eb0037aca68f83a15088db45f
child 728850 599f69b91ecd002eaaade9547d28ad22918aa74c
push id76892
push userbmo:cnevinchen@gmail.com
push dateWed, 30 Aug 2017 03:14:04 +0000
reviewersjwu
bugs1394361
milestone57.0a1
Bug 1394361 - Tab title is cropped and not align to close button. r?jwu MozReview-Commit-ID: JDqgSulYqAx
mobile/android/app/src/main/res/layout-large/tabs_layout_item_view.xml
--- a/mobile/android/app/src/main/res/layout-large/tabs_layout_item_view.xml
+++ b/mobile/android/app/src/main/res/layout-large/tabs_layout_item_view.xml
@@ -25,17 +25,19 @@
                android:layout_width="0dip"
                android:layout_height="wrap_content"
                android:layout_weight="1.0"
                style="@style/TabLayoutItemTextAppearance"
                android:textSize="14sp"
                android:textColor="@color/tab_item_title"
                android:singleLine="true"
                android:duplicateParentState="true"
+               android:layout_gravity="center_vertical"
                gecko:fadeWidth="15dp"
+               android:minHeight="24dp"
                android:paddingRight="5dp"
                android:paddingEnd="5dp"
                android:paddingLeft="0dp"
                android:paddingStart="0dp"
                android:drawablePadding="6dp"/>
 
         <!-- Use of baselineAlignBottom only supported from API 11+ - if this needs to work on lower API versions
              we'll need to override getBaseLine() and return image height, but we assume this won't happen -->