New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-24963] iOS/Android: Added new ScrollView.scrollToTop() method #9601
Conversation
[TIMOB-24963] Add iOS-parity, update docs
- [TIMOB-25514] Fixed bug where vertical ScrollView.scrollTo() goes to wrong position when animated. (Introduced in 6.2.2.) - [TIMOB-25515] Fixed bug where ScrollView.scrollTo() ignores "ti.ui.defaultunit" when animated. - Fixed ScrollView.scrollToTop() method for vertical scroll views for TIMOB-24963. * This bug was never introduced into Titanium. It was caught before the pull request was merged. * Caused by bug in Google's NestedScrollView which Titanium switched to in 6.2.2.
- Restored code formatting back to Axway Appcelerator coding standards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS approved. Waiting for Android-approval before QE can merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with this environment:
Node Version: 8.9.1
NPM Version: 5.5.1
Mac OS: 10.13
Appc CLI: 7.0.0-master.13
Appc CLI NPM: 4.2.11-2
Titanium SDK version: 7.0.0.v20171114213729
Appcelerator Studio vers 4.10.0
Xcode 9.1/iOS 11.1 iPhone 7 Plus
Android 7.1.2 (Pixel), 4.1.2 (Galaxy S2)
Passed FR. I followed the steps per Josh's test case with iOS 11, and Android 7.1.2, and 4.1.2. Tests passed.
@garymathews can you please CR? If there are code changes, I'll redo the FR. Otherwise, I'll merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: PASS
Note:
This is a modified version of @m1ga's PR #9221. (Thanks Michael!)
JIRA:
Main Ticket
https://jira.appcelerator.org/browse/TIMOB-24963
Also Fixes
https://jira.appcelerator.org/browse/TIMOB-25514
https://jira.appcelerator.org/browse/TIMOB-25515
Summary:
NestedScrollView
class.Test:
Run the below test on both Android and iOS...