Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Unified Diff: chrome/android/java/res/layout/tabular_context_menu_row.xml

Issue 2956943002: Adding smarter resizing logic for the context menu on orientation changes (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/tabular_context_menu_row.xml
diff --git a/chrome/android/java/res/layout/tabular_context_menu_row.xml b/chrome/android/java/res/layout/tabular_context_menu_row.xml
index b638933dcff532653d2dc269414766767aed3f82..fa3d95d8ed3a7ddb711a444673be234fa689ea5b 100644
--- a/chrome/android/java/res/layout/tabular_context_menu_row.xml
+++ b/chrome/android/java/res/layout/tabular_context_menu_row.xml
@@ -2,13 +2,16 @@
<!-- Copyright 2017 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<org.chromium.chrome.browser.widget.BoundedLinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:chrome="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="15dp"
android:minHeight="40dp"
+ chrome:maxHeight="40dp"
tools:ignore="UseCompoundDrawables">
<ImageView
android:id="@+id/context_menu_icon"
@@ -42,4 +45,4 @@
android:id="@+id/context_menu_right_padding"
android:layout_width="15dp"
android:layout_height="wrap_content"/>
-</LinearLayout>
+</org.chromium.chrome.browser.widget.BoundedLinearLayout>

Powered by Google App Engine
This is Rietveld 408576698