[TIMOB-8832] BlackBerry: Implement important ScrollView functionality
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-03-19T17:50:08.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 3.1.0, 2013 Sprint 06 BB, 2013 Sprint 06 |
| Components | BlackBerry |
| Labels | notable |
| Reporter | Francois Boisvert |
| Assignee | Pedro Enrique |
| Created | 2012-04-20T11:28:41.000+0000 |
| Updated | 2017-03-08T18:19:50.000+0000 |
Description
As a developer, I want a view that provides a viewport of a content
view that can be scrolled using gestures both horizontally and vertically.
The existing Titanium API for this feature is Ti.UI.ScrollView.
Cascades does provide a control (ScrollView) which should meet
the requirements for this view.
sz: ScrollMode/ScrollPosition and ScrollView coming later
Pull request: https://github.com/appcelerator/titanium_mobile_blackberry/pull/24 Scrollview properties as of the PR: - contentWidth - contentHeight - layout
Test case:
var win = Titanium.UI.createWindow(); var scroll = Ti.UI.createScrollView({ backgroundColor: '#ccc', width: 200, height: 300, layout: 'vertical', contentHeight: Ti.UI.SIZE, contentWidth: Ti.UI.FILL }); function MyButton(title) { return Ti.UI.createButton({ title: title, top: 10 }); } for(var i = 0; i < 100; i++) { scroll.add(MyButton('Button #' + (i + 1))); } win.add(scroll); win.open();Closing ticket as resolved.