Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17218] iOS: complex layouts crash on 3.3.0.RC

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-06-26T11:56:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labels3.3.0, 3.3.0.RC, crash, i0S
ReporterMark Mokryn
AssigneeIngo Muschenetz
Created2014-06-26T10:09:50.000+0000
Updated2014-06-26T11:56:22.000+0000

Description

The following code will crash on iPhone, when using 3.3.0.RC. Using 3.2.3.GA it runs fine. In general, I'm seeing frequent crashes on iOS with this release, perhaps due to the issue demonstrated here. Unfortunately this is as simplified as I could find for an example. index.xml:
<Alloy>
	<Window>
<!-- note if you remove layout=vertical from fullWin, it works -->
 		<View id="fullWin" layout="vertical">
			<ScrollView id="scrollView">
				<View class="someView">
					<Button id="btn"/>
				</View>					
				<View id="anotherView"/>
			</ScrollView>
		</View>
	</Window>
</Alloy>
index.js
$.index.open();
// Note: if you comment out the following line, no crash
$.scrollView.visible = false;
var subView = Ti.UI.createView({height: 20, backgroundColor: "red"});
$.anotherView.add(subView);
$.scrollView.visible = true;
index.tss:
"Window": {
	backgroundColor: "#fff"
},
"#scrollView": {
	//backgroundColor:'white',
	top:'0dp',
	scrollType: 'vertical',
	//height: Ti.UI.SIZE,
	width: Ti.UI.FILL,
	contentHeight: 'auto',
	contentWidth: 'auto',
	layout: 'vertical',
	showVerticalScrollIndicator: true,
	scrollingEnabled: true
}
"#anotherView": {
	top: '0dp',
	height: Ti.UI.SIZE,
	width: Ti.UI.FILL,
	layout: 'vertical'
}
".someView": {
	top: '0dp',
	height: '64dp',
	width: Ti.UI.FILL
}
"#btn": {
	font:{fontSize:'16dp', fontFamily:'Helvetica Neue'},
	top: '10dp',
	width: '280dp',
	height: '44dp',
	title: "a button"	
}

Comments

  1. Mark Mokryn 2014-06-26

  2. Shuo Liang 2014-06-26

    Duplicate as TIMOB-17172

JSON Source