{ "id": "88529", "key": "TIMOB-8205", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-03-22T19:36:04.000+0000", "created": "2012-03-22T15:55:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15894", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "88499", "key": "TIMOB-8193", "fields": { "summary": "iOS: Composite layout - horizontal layout Views don't position children correctly", "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 } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:20:56.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Horizontal layout Views don't position children correctly.\r\nh4. Expected behavior \r\nA red view at the top of the window (full width).\r\nAn orange view occupying the left half of the red view.\r\nA blue square view immediately to the right of the orange view and vertically centered.\r\n\r\nh4. Repo Steps\r\n1.Run the below code in app.js\r\n2.You will see the blue view actually appears at position top=0\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({ \r\n title:'Win 1',\r\n layout:'vertical',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar vw1 = Ti.UI.createView({\r\n layout:'horizontal',\r\n backgroundColor:'red',\r\n width:'100%',\r\n height:75\r\n});\r\nwin1.add(vw1);\r\n\r\n//\r\nvar TheOrange=Ti.UI.createView({height:75,\r\n width:'160dp',\r\n backgroundColor:'orange',\r\n top:0\r\n });\r\n\r\nvar GreenView=Ti.UI.createView({\r\n height:Ti.UI.SIZE,\r\n width:Ti.UI.SIZE,\r\n focusable:false,\r\n touchEnabled:false,\r\n backgroundColor:'green'\r\n});\r\n\r\nGreenView.add(TheOrange);\r\nvw1.add(GreenView);\r\n\r\nvar BlueView=Ti.UI.createView({\r\n backgroundColor:'blue',\r\n width:50,\r\n height:50\r\n});\r\nvw1.add(BlueView);\r\n//\r\n\r\nwin1.open();\r\n\r\n{code}", "attachment": [ { "id": "26479", "filename": "ios_vs_android.png", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T15:55:28.000+0000", "size": 63984, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Composite layout - horizontal layout Views don't position children correctly", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 1.0.9.201202141208\r\n", "comment": { "comments": [ { "id": "188123", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Android behavior is correct in that the blue box is vertically center. Closing.", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-03-22T19:35:53.000+0000", "updated": "2012-03-22T19:35:53.000+0000" }, { "id": "410993", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:20:56.000+0000", "updated": "2017-03-09T23:20:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }