Merge \"Don\'t try and resolve WRAP_CONTENT too early.\" into nyc-dev
am: 72ce991692
Change-Id: Id020f8282da4b13da91921c459b1b65d6fa8552d
This commit is contained in:
@@ -1517,13 +1517,9 @@ public class PopupWindow {
|
||||
anchor.getWindowVisibleDisplayFrame(displayFrame);
|
||||
if (width == MATCH_PARENT) {
|
||||
width = displayFrame.right - displayFrame.left;
|
||||
} else if (width == WRAP_CONTENT) {
|
||||
width = mContentView.getMeasuredWidth();
|
||||
}
|
||||
if (height == MATCH_PARENT) {
|
||||
height = displayFrame.bottom - displayFrame.top;
|
||||
} else if (height == WRAP_CONTENT) {
|
||||
height = mContentView.getMeasuredHeight();
|
||||
}
|
||||
|
||||
// Let the window manager know to align the top to y.
|
||||
|
||||
Reference in New Issue
Block a user