[TIMOB-17218] iOS: complex layouts crash on 3.3.0.RC
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-06-26T11:56:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | 3.3.0, 3.3.0.RC, crash, i0S |
Reporter | Mark Mokryn |
Assignee | Ingo Muschenetz |
Created | 2014-06-26T10:09:50.000+0000 |
Updated | 2014-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"
}
Duplicate as TIMOB-17172