Merge "PopupWindow: Be more consistent about Gravity calculation." into nyc-mr1-dev

This commit is contained in:
Rob Carr
2016-08-22 20:47:07 +00:00
committed by Android (Google) Code Review

View File

@@ -1547,7 +1547,7 @@ public class PopupWindow {
} }
// Let the window manager know to align the top to y. // Let the window manager know to align the top to y.
outParams.gravity = Gravity.LEFT | Gravity.TOP; outParams.gravity = computeGravity();
outParams.width = width; outParams.width = width;
outParams.height = height; outParams.height = height;