commit | 9705fa0602290b56edc81f64bfcba38f159069b1 | [log] [tgz] |
---|---|---|
author | Alan Viverette <alanv@google.com> | Thu Jun 30 13:17:26 2016 -0400 |
committer | Alan Viverette <alanv@google.com> | Thu Jun 30 13:17:26 2016 -0400 |
tree | c334af587545a108109aa3876780dc9d871c585e | |
parent | bb07b0b3720250b693fb2abe70325e93bdf7ffbd [diff] |
Only clip PopupWindow in the vertical direction Bug: 29865091 Change-Id: Ic4e3b50571034f341aff2c2fbf2c349342622448
diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index 6477f07..6432f70 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java
@@ -1396,7 +1396,7 @@ 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; }