From 529e7ed3fe5735b4ae131d101ed9b143ce65a302 Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Thu, 4 Sep 2014 17:27:40 +0100 Subject: [PATCH] Bug 1020505 - Don't truncate the menu popup width (r=margaret) --- mobile/android/base/menu/MenuPopup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/base/menu/MenuPopup.java b/mobile/android/base/menu/MenuPopup.java index 848587b0cf95..cc7744b35b8d 100644 --- a/mobile/android/base/menu/MenuPopup.java +++ b/mobile/android/base/menu/MenuPopup.java @@ -37,7 +37,7 @@ public class MenuPopup extends PopupWindow { // Setting a null background makes the popup to not close on touching outside. setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); - setWindowLayoutMode(View.MeasureSpec.makeMeasureSpec(mPopupWidth, View.MeasureSpec.AT_MOST), + setWindowLayoutMode(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); LayoutInflater inflater = LayoutInflater.from(context);