Bug 1020505 - Don't truncate the menu popup width (r=margaret)

This commit is contained in:
Lucas Rocha 2014-09-04 17:27:40 +01:00
parent 3ad459f0a7
commit 529e7ed3fe

View File

@ -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);