Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efc16b3e authored by Alan Viverette's avatar Alan Viverette Committed by The Android Automerger
Browse files

Only clip PopupWindow in the vertical direction

Bug: 29865091
Change-Id: Ic4e3b50571034f341aff2c2fbf2c349342622448
parent 3399aa1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }