[TIMOB-7947] iOS: TableView: Setting vertical layout does not display all the items added to the view correctly
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-04-02T12:45:11.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | Release 2.0.0, Sprint 2012-06 |
| Components | iOS |
| Labels | module_view, qe-testadded |
| Reporter | Natalie Huynh |
| Assignee | Vishal Duggal |
| Created | 2012-03-09T10:37:57.000+0000 |
| Updated | 2012-04-02T12:45:11.000+0000 |
Description
Steps To Reproduce:
1. Compile the app.js below:
var window = Ti.UI.createWindow({
backgroundColor:'#fff'
});
// draw a view that fills the window and set its layout property
var view = Ti.UI.createView({
backgroundColor:'transparent',
top:0,
left:0,
width:'100%',
height: '100%',
layout:'vertical'
});
var tbl_data = [];
for (var i = 0; i < 50; i++) {
var row = Ti.UI.createTableViewRow();
var label = Ti.UI.createLabel({
left: 10,
text: 'Row ' + (i+1)
});
row.add(label);
tbl_data.push(row);
}
var view1 = Ti.UI.createView({
backgroundColor:'red',
top:0,
left:0,
width:100,
height:100,
layout:'vertical'
});
// now assign that array to the table's data property to add those objects as rows
var table = Titanium.UI.createTableView({
//top: 100,
height: 'auto',
data:tbl_data
});
view.add(view1);
view.add(table);
window.add(view);
window.open();
Actual:
Missing red box added to the view
Expected:
To display a red box on the top of the view and the table view after
Attachments
| File | Date | Size |
|---|---|---|
| correct.png | 2012-03-15T14:08:29.000+0000 | 16257 |
Closing as Fixed. SDK: 2.0.0.v20120315140247 Studio: 2.0.0.201203142055 OS: Snow Leopard Devices Tested: iPhone Simulator 5.0, iPhone4 5.0.1, , iPad2 5.1
Open to update tag
Ported same test case from TIMOB-7784