diff options
author | Adam Powell <adamp@google.com> | 2011-08-07 15:48:03 -0700 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2011-08-07 15:48:25 -0700 |
commit | a7845ed44a3722e7d96ca9b677be213da7e8c8fe (patch) | |
tree | 9e040ec063019b58c35372d0995931d88e3fa472 | |
parent | 5d4967884132647a75d05bcc2ca1f9ce490b372f (diff) | |
download | frameworks_base-a7845ed44a3722e7d96ca9b677be213da7e8c8fe.zip frameworks_base-a7845ed44a3722e7d96ca9b677be213da7e8c8fe.tar.gz frameworks_base-a7845ed44a3722e7d96ca9b677be213da7e8c8fe.tar.bz2 |
Fix bug 5124712 - allow partial items when measuring height of list popups
Change-Id: I59c9fc6d5dcd21679ba67d7c233ecd9d7e19d21c
-rw-r--r-- | core/java/android/widget/ListPopupWindow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/ListPopupWindow.java b/core/java/android/widget/ListPopupWindow.java index f057d07..307959b 100644 --- a/core/java/android/widget/ListPopupWindow.java +++ b/core/java/android/widget/ListPopupWindow.java @@ -1092,7 +1092,7 @@ public class ListPopupWindow { } final int listContent = mDropDownList.measureHeightOfChildren(MeasureSpec.UNSPECIFIED, - 0, ListView.NO_POSITION, maxHeight - otherHeights, 2); + 0, ListView.NO_POSITION, maxHeight - otherHeights, -1); // add padding only if the list has items in it, that way we don't show // the popup if it is not needed if (listContent > 0) otherHeights += padding; |