Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7845ed4 authored by Adam Powell's avatar Adam Powell
Browse files

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

Change-Id: I59c9fc6d5dcd21679ba67d7c233ecd9d7e19d21c
parent 5d496788
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;