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

This commit is contained in:
Rob Carr
2016-04-13 18:54:59 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {