commit | 62e2bdecc21819a71c04204f20fc051886fdabd6 | [log] [tgz] |
---|---|---|
author | Adam Powell <adamp@google.com> | Mon Aug 15 15:50:05 2011 -0700 |
committer | Adam Powell <adamp@google.com> | Mon Aug 15 16:54:40 2011 -0700 |
tree | 6b2fab621ae39172ff4417e0ccc73595226c6a19 | |
parent | e21f89c80256ed2aeaa53022770b140b58e75394 [diff] [blame] |
Fix bug 5165223 Fix Holo Spinner item/dropdown alignment. Fix bug 5117565 Spinner popup extends out of screen bounds. Change-Id: I7fef7bbe98aa26611c498d1fe875e84db57dcda0
diff --git a/core/java/android/widget/ListPopupWindow.java b/core/java/android/widget/ListPopupWindow.java index 307959b..a2910af 100644 --- a/core/java/android/widget/ListPopupWindow.java +++ b/core/java/android/widget/ListPopupWindow.java
@@ -449,6 +449,8 @@ if (popupBackground != null) { popupBackground.getPadding(mTempRect); mDropDownWidth = mTempRect.left + mTempRect.right + width; + } else { + setWidth(width); } }