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

Commit 16a76dbb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix PopupWindow's wrong location" into rvc-dev am: 4f4706de am: a75afd6c

Change-Id: I85e37b568962b5cae34ae32b82b2081de59074e0
parents 9a11b0c3 a75afd6c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1818,7 +1818,7 @@ public class PopupWindow {
        final int winOffsetY = screenLocationY - drawingLocationY;
        final int anchorTopInScreen = outParams.y + winOffsetY;
        final int spaceBelow = displayFrameBottom - anchorTopInScreen;
        if (anchorTopInScreen >= 0 && height <= spaceBelow) {
        if (anchorTopInScreen >= displayFrameTop && height <= spaceBelow) {
            return true;
        }

@@ -1880,7 +1880,7 @@ public class PopupWindow {
        final int winOffsetX = screenLocationX - drawingLocationX;
        final int anchorLeftInScreen = outParams.x + winOffsetX;
        final int spaceRight = displayFrameRight - anchorLeftInScreen;
        if (anchorLeftInScreen >= 0 && width <= spaceRight) {
        if (anchorLeftInScreen >= displayFrameLeft && width <= spaceRight) {
            return true;
        }