diff options
| -rw-r--r-- | src/com/android/ex/chips/RecipientEditTextView.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java index 1629360..7a6ae7a 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -505,6 +505,12 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements if (entries != null && entries.size() > 0) { scrollBottomIntoView(); } + // Set the dropdown height to be the remaining height + final int[] coords = new int[2]; + getLocationInWindow(coords); + final Rect displayFrame = new Rect(); + getWindowVisibleDisplayFrame(displayFrame); + setDropDownHeight(displayFrame.bottom - coords[1] - getHeight()); } }); baseAdapter.setDropdownChipLayouter(mDropdownChipLayouter); |
