[TIMOB-8775] iOS: ScrollView does not scroll if contentHeight and contentWidth are not provided
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-26T15:51:56.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | Release 2.1.0, Sprint 2012-09 Core |
Components | iOS |
Labels | core, module_scrollview, qe-testadded |
Reporter | Varun Joshi |
Assignee | Stephen Tramer |
Created | 2012-04-17T16:54:20.000+0000 |
Updated | 2012-07-09T10:09:04.000+0000 |
Description
Problem
Scrollview in Release 2.0.x does not scroll if contentHeight and contentWidth are not provided.
Code Sample
{noformat}
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var scrollView = Ti.UI.createScrollView({
top:10,
left:5,
layout: 'horizontal'
});
var things = [
'item1',
'item2',
'item3',
'item4',
'item5',
'item6' ];
for (var i = 0; i < things.length; i++) {
var view = Ti.UI.createView({
height: 90,
width: 140,
top: 10,
left: 10,
backgroundColor: '#CCC'
});
scrollView.add(view);
};
win.add(scrollView);
win.open();
{noformat}
Comments
JSON Source
PR 2073
Verified fixed with SDK 2.1.0.v20120614124151 and iPhone 4 (5.0.1)