Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7947] iOS: TableView: Setting vertical layout does not display all the items added to the view correctly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-02T12:45:11.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsiOS
Labelsmodule_view, qe-testadded
ReporterNatalie Huynh
AssigneeVishal Duggal
Created2012-03-09T10:37:57.000+0000
Updated2012-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

FileDateSize
correct.png2012-03-15T14:08:29.000+000016257

Comments

  1. Dustin Hyde 2012-03-15

    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
  2. Natalie Huynh 2012-04-02

    Open to update tag
  3. Natalie Huynh 2012-04-02

    Ported same test case from TIMOB-7784

JSON Source