Take vertical offset into account for dropdown height
Change-Id: Ie3d5110d27a1868f5afedd336416fca346e5a31c
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java
index 4adaf7a..f00842b 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -517,7 +517,8 @@
// Set the dropdown height to be the remaining height from the anchor to the bottom.
mDropdownAnchor.getLocationInWindow(mCoords);
getWindowVisibleDisplayFrame(mRect);
- setDropDownHeight(mRect.bottom - mCoords[1] - mDropdownAnchor.getHeight());
+ setDropDownHeight(mRect.bottom - mCoords[1] - mDropdownAnchor.getHeight() -
+ getDropDownVerticalOffset());
mCurrentSuggestionCount = entries == null ? 0 : entries.size();
}