diff options
| author | Adam Powell <adamp@google.com> | 2011-01-27 15:59:46 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-27 15:59:46 -0800 |
| commit | e3ba5cfe9b4f524d955f77f5fff53440d80f9464 (patch) | |
| tree | 242ceb9325e87338cab5c69e074304b08e9aa2fc /core/java/android | |
| parent | 4c02c2246a9060487e4a7be3389c23c8533f9a5d (diff) | |
| parent | d1f94e36da6276acc00d0a3267a505fd6a61702d (diff) | |
| download | frameworks_base-e3ba5cfe9b4f524d955f77f5fff53440d80f9464.zip frameworks_base-e3ba5cfe9b4f524d955f77f5fff53440d80f9464.tar.gz frameworks_base-e3ba5cfe9b4f524d955f77f5fff53440d80f9464.tar.bz2 | |
am d1f94e36: Merge "Fix bug 3399725 - externally reported issue 14317: android:scrollbarSize attribute does not work in ScrollView tag" into honeycomb
* commit 'd1f94e36da6276acc00d0a3267a505fd6a61702d':
Fix bug 3399725 - externally reported issue 14317: android:scrollbarSize attribute does not work in ScrollView tag
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/View.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 5e8f31a..d0b150b 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -7539,10 +7539,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility final int height = mBottom - mTop; final ScrollBarDrawable scrollBar = cache.scrollBar; - int size = scrollBar.getSize(false); - if (size <= 0) { - size = cache.scrollBarSize; - } final int scrollX = mScrollX; final int scrollY = mScrollY; @@ -7551,6 +7547,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility int left, top, right, bottom; if (drawHorizontalScrollBar) { + int size = scrollBar.getSize(false); + if (size <= 0) { + size = cache.scrollBarSize; + } + scrollBar.setParameters(computeHorizontalScrollRange(), computeHorizontalScrollOffset(), computeHorizontalScrollExtent(), false); @@ -7567,6 +7568,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility } if (drawVerticalScrollBar) { + int size = scrollBar.getSize(true); + if (size <= 0) { + size = cache.scrollBarSize; + } + scrollBar.setParameters(computeVerticalScrollRange(), computeVerticalScrollOffset(), computeVerticalScrollExtent(), true); |
