Fix bug 5124712 - allow partial items when measuring height of list popups

Change-Id: I59c9fc6d5dcd21679ba67d7c233ecd9d7e19d21c
This commit is contained in:
Adam Powell
2011-08-07 15:48:03 -07:00
parent 5d49678841
commit a7845ed44a

View File

@ -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;