{ "id": "62764", "key": "TIMOB-2132", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:11:25.000+0000", "created": "2011-04-15T03:11:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "ios", "iphone", "rplist", "view" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T21:05:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

On the iphone using 4.1 and 1.5, if a sub view of a view that\nuses a vertical layout, the subview will not render.

\n

Modified KS code to show the issue:

\n

var win = Ti.UI.currentWindow;
\nwin.layout = 'vertical';

\n

// HEADER var header =\nTi.UI.createView({height:50,borderWidth:1,borderColor:'#999',backgroundColor:'white'});
\nvar headerLabel = Ti.UI.createLabel({color:'#777',\ntop:10,textAlign:'center', height:'auto', text:'Header'});
\nheader.add(headerLabel);

\n

win.add(header);

\n

// BODY var body = Ti.UI.createView({height:'auto',\nlayout:'vertical', backgroundColor:'#fff'});

\n

var bodyView1 = Ti.UI.createView({backgroundColor:'#336699',\nheight:100, left:10, right:10});
\nvar bodyView2 = Ti.UI.createView({backgroundColor:'#ff0000',\nleft:10, right:10, top:10});
\nvar bodyView3 = Ti.UI.createView({backgroundColor:'orange',\nheight:50, left:10, right:10, top:10});
\nbody.add(bodyView1);
\nbody.add(bodyView2);
\nbody.add(bodyView3);

\n

win.add(body);

\n

// FOOTER var footer =\nTi.UI.createView({height:50,borderWidth:1,borderColor:'#999',backgroundColor:'white'});
\nvar footerLabel = Ti.UI.createLabel({color:'#777',\ntextAlign:'center', height:'auto', text:'Footer'});
\nfooter.add(footerLabel);

\n

win.add(footer);

\n

HD ticket for reference:
\nhttp://developer.appcelerator.com/helpdesk/view/50001

{html}", "attachment": [], "flagged": false, "summary": "Vertical layout broken with auto for height", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127594", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Marking invalid. Layout:Psychic was requested. I've mentioned\nthat this sort of layout (Where one section compensates for others'\npositions including size) may be possible with a feature request\n(to allow percents to be the portion of the remaining space), but\nthat's a feature request, not a bug.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:25.000+0000", "updated": "2011-04-15T03:11:25.000+0000" }, { "id": "408509", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T21:05:06.000+0000", "updated": "2017-03-02T21:05:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }