Merge "Correct PopupWindow spaceAbove calculation." into nyc-dev
This commit is contained in:
@@ -1579,7 +1579,7 @@ public class PopupWindow {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
final int spaceAbove = displayFrameTop + anchorTopInScreen - anchorHeight;
|
final int spaceAbove = anchorTopInScreen - anchorHeight - displayFrameTop;
|
||||||
if (height <= spaceAbove) {
|
if (height <= spaceAbove) {
|
||||||
// Move everything up.
|
// Move everything up.
|
||||||
if (mOverlapAnchor) {
|
if (mOverlapAnchor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user