Merge "Only clip PopupWindow in the vertical direction" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4b736ea56d
@@ -1396,7 +1396,7 @@ public class PopupWindow {
|
|||||||
private int computeGravity() {
|
private int computeGravity() {
|
||||||
int gravity = Gravity.START | Gravity.TOP;
|
int gravity = Gravity.START | Gravity.TOP;
|
||||||
if (mClipToScreen || mClippingEnabled) {
|
if (mClipToScreen || mClippingEnabled) {
|
||||||
gravity |= Gravity.DISPLAY_CLIP_VERTICAL | Gravity.DISPLAY_CLIP_HORIZONTAL;
|
gravity |= Gravity.DISPLAY_CLIP_VERTICAL;
|
||||||
}
|
}
|
||||||
return gravity;
|
return gravity;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user