summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/AutoCompleteTextView.java
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-05-01 23:25:28 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-05-01 23:25:28 -0700
commit3ee2f8189f145e2cd0173a20d156dec47274bd13 (patch)
treede18798098b56aceeb673e451a25e1c6a1a0edd8 /core/java/android/widget/AutoCompleteTextView.java
parent26504548bfdb9dd6db285544581d08e9692b0f26 (diff)
parent854c8c78c1bce214f6479772d94147070ec6764f (diff)
downloadframeworks_base-3ee2f8189f145e2cd0173a20d156dec47274bd13.zip
frameworks_base-3ee2f8189f145e2cd0173a20d156dec47274bd13.tar.gz
frameworks_base-3ee2f8189f145e2cd0173a20d156dec47274bd13.tar.bz2
am 854c8c7: Merge change 896 into donut
Merge commit '854c8c78c1bce214f6479772d94147070ec6764f' * commit '854c8c78c1bce214f6479772d94147070ec6764f': 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 e11303d..8da7c6b 100644
--- a/core/java/android/widget/AutoCompleteTextView.java
+++ b/core/java/android/widget/AutoCompleteTextView.java
@@ -1130,9 +1130,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;