Permalink
Browse files

Fixed a bug to do with scrolling to certain positions whilst changing…

… a layout paramater (such as padding). It would cause onLayout to be called and the view to jump to the previous page position. This bug was introduced in the update before last.
  • Loading branch information...
1 parent 7556a52 commit e90bf172461f833bb6603047181b49f070867627 @jsonfry committed Feb 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/uk/co/jasonfry/android/tools/ui/SwipeView.java
@@ -188,7 +188,7 @@ public void addView (View child, int index, ViewGroup.LayoutParams params)
protected void onLayout(boolean changed, int l, int t, int r, int b)
{
super.onLayout(changed, l, t, r, b);
- scrollToPage(mCurrentPage);
+ scrollToPage(getScrollX());
}
/**

0 comments on commit e90bf17

Please sign in to comment.