-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIMOB-24963] iOS/Android: Added new ScrollView.scrollToTop() method (#…
…9601) * scrollToTop() * [TIMOB-24963] Add iOS-parity, update docs * set to version 7 * Android/iOS/Windows: Added unit test for ScrollView.scrollToTop() function. * Android: Fixed animated scrolling issues in ScrollView. - [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. * iOS: Reverted "TiUIScrollViewProxy.h" changes made by TIMOB-24963. - Restored code formatting back to Axway Appcelerator coding standards. * Move test addition to addontest
- Loading branch information
1 parent
831da45
commit faff14a
Showing
7 changed files
with
110 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ | |
- (UIView *)wrapperView; | ||
#endif | ||
- (void)scrollToBottom; | ||
- (void)scrollToTop; | ||
|
||
@end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2011-Present by Appcelerator, Inc. All Rights Reserved. | ||
* Licensed under the terms of the Apache Public License | ||
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
/* eslint-env mocha */ | ||
/* global Ti */ | ||
/* eslint no-unused-expressions: "off" */ | ||
'use strict'; | ||
var should = require('./utilities/assertions'); | ||
|
||
describe('Titanium.UI.ScrollView', function () { | ||
it('#scrollToTop()', function () { | ||
var bar = Ti.UI.createScrollView({}); | ||
should(bar.scrollToTop).be.a.Function; | ||
}); | ||
}); |