Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8775] iOS: ScrollView does not scroll if contentHeight and contentWidth are not provided

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-26T15:51:56.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-09 Core
ComponentsiOS
Labelscore, module_scrollview, qe-testadded
ReporterVarun Joshi
AssigneeStephen Tramer
Created2012-04-17T16:54:20.000+0000
Updated2012-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

  1. Vishal Duggal 2012-04-26

    PR 2073
  2. Eric Merriman 2012-06-14

    Verified fixed with SDK 2.1.0.v20120614124151 and iPhone 4 (5.0.1)

JSON Source