summaryrefslogtreecommitdiff
path: root/core/java/android/widget/AutoCompleteTextView.java
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-05-01 16:32:21 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-05-01 16:32:21 -0700
commit854c8c78c1bce214f6479772d94147070ec6764f (patch)
tree28b4d3245231c816c95649872ef3bcd947103d2f /core/java/android/widget/AutoCompleteTextView.java
parentef65477523a6170bab7897809d1a8f9a3f5165f6 (diff)
parent743ae65992641263ae006605462af0290aac84ad (diff)
Merge change 896 into donut
* changes: make AutoCompleteTextView take the alternate anchor view into account when computing the max available space on screen.
Diffstat (limited to 'core/java/android/widget/AutoCompleteTextView.java')
-rw-r--r--core/java/android/widget/AutoCompleteTextView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java
index 1e122a72baa1..9c10f0ad1d6a 100644
--- a/core/java/android/widget/AutoCompleteTextView.java
+++ b/core/java/android/widget/AutoCompleteTextView.java
@@ -1171,9 +1171,9 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
}
}
- // Max height available on the screen for a popup anchored to us
- final int maxHeight = mPopup.getMaxAvailableHeight(this, mDropDownVerticalOffset);
- //otherHeights += dropDownView.getPaddingTop() + dropDownView.getPaddingBottom();
+ // Max height available on the screen for a popup
+ final int maxHeight =
+ mPopup.getMaxAvailableHeight(getDropDownAnchorView(), mDropDownVerticalOffset);
final int measuredHeight = mDropDownList.measureHeightOfChildren(MeasureSpec.UNSPECIFIED,
0, ListView.NO_POSITION, maxHeight - otherHeights, 2) + otherHeights;