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

Commit 0aa490c1 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:...

Merge "Fix PopupWindow's wrong location" into rvc-dev am: 4f4706de am: e1a515fe am: 3709c6bf am: 4a67a168

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


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