summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/PagedView.java
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2012-04-08 14:42:53 +0200
committernebkat <nebkat@teamhacksung.org>2012-12-16 12:05:32 +0000
commit5194c1d76789952f836d315b4dc27aba9d325844 (patch)
tree90fbffd4ef5c3e2fa692eaaccce47ff37b083e35 /src/com/cyanogenmod/trebuchet/PagedView.java
parentced2e4fce571d48bb7e13af6c95b2f3e851ec51b (diff)
downloadandroid_packages_apps_Trebuchet-5194c1d76789952f836d315b4dc27aba9d325844.tar.gz
android_packages_apps_Trebuchet-5194c1d76789952f836d315b4dc27aba9d325844.tar.bz2
android_packages_apps_Trebuchet-5194c1d76789952f836d315b4dc27aba9d325844.zip
AppsCustomizePagedView: Orientation
Conflicts: res/values/arrays.xml src/com/beansoft/launcher/preference/PreferencesProvider.java src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java Change-Id: I21070fb3688ba436b3ca88f1caee8a6cfbdbf31d
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/PagedView.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/PagedView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/trebuchet/PagedView.java b/src/com/cyanogenmod/trebuchet/PagedView.java
index aa745217f..47159a557 100644
--- a/src/com/cyanogenmod/trebuchet/PagedView.java
+++ b/src/com/cyanogenmod/trebuchet/PagedView.java
@@ -2113,7 +2113,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
int pageSize = !mVertical ? getMeasuredWidth() : getMeasuredHeight();
int lastChildIndex = Math.max(0, getChildCount() - 1);
int maxScroll = getChildOffset(lastChildIndex) - getRelativeChildOffset(lastChildIndex);
- int trackWidth = pageSize - mScrollIndicatorPaddingLeft - mScrollIndicatorPaddingRight;
+ int trackWidth = getMeasuredWidth() - mScrollIndicatorPaddingLeft - mScrollIndicatorPaddingRight;
int indicatorWidth = mScrollIndicator.getMeasuredWidth() -
mScrollIndicator.getPaddingLeft() - mScrollIndicator.getPaddingRight();