Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13114] iOS: ScrollView with height:Ti.UI.SIZE will not scroll in window with vertical layout

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-07-26T04:23:33.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsios, scrollview
ReporterMark Mokryn
AssigneeEric Merriman
Created2013-03-17T10:41:15.000+0000
Updated2017-07-26T04:23:33.000+0000

Description

Problem description

ScrollView does not scroll if Window layout is vertical and ScrollView height is set to Ti.UI.SIZE

Steps to reproduce

Use the following code:
var win = Titanium.UI.createWindow({
	layout:'vertical',
	backgroundColor: 'white'
});

var scrollView = Titanium.UI.createScrollView({
  contentWidth:'auto',
  contentHeight:'auto',
  top:0,
  height: Ti.UI.SIZE
});

var label = Ti.UI.createLabel({
	color: 'black',
	text: 'Ciao',
	top: 1000
});
scrollView.add(label);

win.add(scrollView);
win.open();
If you remove either layout:'vertical' from the Window, or height:Ti.UI.SIZE from the ScrollView it scrolls fine. Either combination works fine in Android. Reproduced in the file scroll_views_basic.js in Kitchen Sink 3.0.2

Comments

  1. Lee Morris 2017-07-26

    I am unable to reproduce this issue with the following environment; iPhone 6 (10.0) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source