Project: titanium
Issue TIMOB-19438: Windows: ScrollView contentOffset doesn't work
{{ScrollView.contentOffset}} doesn't work. {code:javascript} var win = Ti.UI.createWindow({ backgroundColor: 'blue' }); var scrollView = Ti.UI.createScrollView({ showVerticalScrollIndicator: true, showHorizontalScrollIndicator: true, height: '100%', width: '100%', contentHeight: 1000 }); var view1 = Ti.UI.createView({ backgroundColor: 'red', width: 185, height: 185, top: 100 }); var imageview1 = Ti.UI.createImageView({ image: 'http://image.tmdb.org/t/p/w780//3FweBee0xZoY77uO1bhUOlQorNH.jpg', top: -20, left: -185, width: 555, height: 312 }); view1.add(imageview1); var view2 = Ti.UI.createView({ backgroundColor: 'red', width: 185, height: 185, top: 550 }); var imageview2 = Ti.UI.createImageView({ image: 'http://image.tmdb.org/t/p/w780//oYZtd7Md78HuzBvT5dlJlHWc89O.jpg', top: -20, left: -185, width: 555, height: 312 }); view2.add(imageview2); scrollView.add(view1); scrollView.add(view2); scrollView.contentOffset = { x: 0, y: 100 }; win.add(scrollView); win.open(); {code}
Story points: 5