{ "id": "86150", "key": "TIMOB-7562", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-18T17:33:32.000+0000", "created": "2012-02-06T18:27:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_view", "parity", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" }, { "id": "12470", "description": "", "name": "Release 1.7.4", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "15681", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "85327", "key": "TIMOB-7344", "fields": { "summary": "iOS: Views - Nested view cannot be displayed when dimension property is defined using percentage", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "22924", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "105214", "key": "TIMOB-11823", "fields": { "summary": "Android: Views - Green label disappears if device rotated to the landscape mode on Motorola RAZR i", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-11-19T19:07:46.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": "When the layout property of a View is set to 'vertical' or 'horizontal', children do not display. Works on Android.\r\n\r\nTested on Views and Windows using Labels, TextFields, and Buttons.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run Code:\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'red',\r\n\tlayout:'horizontal'\r\n});\r\n\r\nvar left = Ti.UI.createLabel({\r\n\ttitle:'Left',\r\n\tbackgroundColor:'blue',\r\n\tcolor:'black',\r\n\twidth:'50%',\r\n\theight:'100%'\r\n});\r\n\r\nvar right = Ti.UI.createLabel({\r\n\ttitle:'Right',\r\n\tbackgroundColor:'green',\r\n\tcolor:'black',\r\n\twidth:'50%',\r\n\theight:'100%'\r\n});\r\n\r\nwin.add(left);\r\nwin.add(right);\r\n\r\nwin.open();\r\n{code}\r\n\r\nExpected Result:\r\n\r\nThere should be a blue bar and a green bar (two labels in a horizontal layout). Screenshot attached.\r\n\r\nActual Result:\r\n\r\nRed background (only the window background). Screenshot attached.", "attachment": [ { "id": "25637", "filename": "Android.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-06T18:27:26.000+0000", "size": 18813, "mimeType": "image/png" }, { "id": "26129", "filename": "iOS_current.png", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-12T09:43:48.000+0000", "size": 8637, "mimeType": "image/png" }, { "id": "25636", "filename": "iOS.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-06T18:27:26.000+0000", "size": 6900, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Titanium.UI.View: view with layout property set to horizontal or vertical does not display children", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.0.1 githash=fbdc96f, 1.8.1 githash=a24502a, 1.9.0.v20120203163134\r\nStudio: 1.0.8.201201262211\r\nOS: Lion\r\nDevices Tested: iPhone4 5.0.1, iPad2 5.01, iPod 4.3.3, iPhone/iPad Simulator 5.0", "comment": { "comments": [ { "id": "182517", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "May be related to the use of percentage values.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-08T17:32:38.000+0000", "updated": "2012-02-08T17:32:38.000+0000" }, { "id": "182522", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The work-around is to use an 'absolute' (default) layout with percentages relative to the boundaries (top, bottom, left, right).", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-08T17:51:49.000+0000", "updated": "2012-02-08T17:51:49.000+0000" }, { "id": "186716", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120315140247\r\nTitanium Studio, build: 2.0.0.201203142055\r\nxcode: 4.2\r\nDevice: iphone 4s (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T15:41:31.000+0000", "updated": "2012-03-15T15:41:31.000+0000" }, { "id": "191736", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-18T17:33:08.000+0000", "updated": "2012-04-18T17:33:08.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }