Only clip PopupWindow in the vertical direction

Bug: 29865091
Change-Id: Ic4e3b50571034f341aff2c2fbf2c349342622448
This commit is contained in:
Alan Viverette
2016-06-30 13:17:26 -04:00
parent bb07b0b372
commit 9705fa0602

View File

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