From 9705fa0602290b56edc81f64bfcba38f159069b1 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Thu, 30 Jun 2016 13:17:26 -0400 Subject: [PATCH] Only clip PopupWindow in the vertical direction Bug: 29865091 Change-Id: Ic4e3b50571034f341aff2c2fbf2c349342622448 --- core/java/android/widget/PopupWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index 6477f079cb7fe..6432f703f2ba4 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java @@ -1396,7 +1396,7 @@ public class PopupWindow { private int computeGravity() { int gravity = Gravity.START | Gravity.TOP; if (mClipToScreen || mClippingEnabled) { - gravity |= Gravity.DISPLAY_CLIP_VERTICAL | Gravity.DISPLAY_CLIP_HORIZONTAL; + gravity |= Gravity.DISPLAY_CLIP_VERTICAL; } return gravity; }