diff options
| author | 2016-06-21 21:23:57 +0000 | |
|---|---|---|
| committer | 2016-06-21 21:24:02 +0000 | |
| commit | 72ce991692cd3da4e4d07b486f2fc0366458650a (patch) | |
| tree | d444b27b74a33d3d66fd47b9971fed9ee05e7808 | |
| parent | 22faa5ddb152576a7cadfde74482b19855466092 (diff) | |
| parent | 07421cb9bb3e1b52489aa91c705808b0200b6265 (diff) | |
Merge "Don't try and resolve WRAP_CONTENT too early." into nyc-dev
| -rw-r--r-- | core/java/android/widget/PopupWindow.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index 3f6e625245f3..19aa1a869a5e 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java @@ -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. |