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

Commit 482fb889 authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Merge "Correct PopupWindow spaceAbove calculation." into nyc-dev

am: caa747b9

* commit 'caa747b9':
  Correct PopupWindow spaceAbove calculation.

Change-Id: I87eb75252c9cffd64fb281646d249443eda47c74
parents 53560db1 caa747b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1579,7 +1579,7 @@ public class PopupWindow {
            return true;
        }

        final int spaceAbove = displayFrameTop + anchorTopInScreen - anchorHeight;
        final int spaceAbove = anchorTopInScreen - anchorHeight - displayFrameTop;
        if (height <= spaceAbove) {
            // Move everything up.
            if (mOverlapAnchor) {