{ "id": "91284", "key": "TIMOB-9099", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-10T23:51:45.000+0000", "created": "2012-05-03T11:27:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "community", "core", "module_view", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17512", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92294", "key": "TIMOB-9226", "fields": { "summary": "Android: Review composite layout feature requests", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-11T14:43:59.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": "When a container has layout:'horizontal' specified, the left/right values of children seem to be ignored, when they should produce padding:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar container = Ti.UI.createView({\r\n\tlayout:'horizontal',\r\n\twidth:200,\r\n\theight:28,\r\n\tbackgroundColor:'#fff',\r\n\tborderColor:'#000',\r\n\tborderWidth:1,\r\n});\r\n\r\nvar child1 = Ti.UI.createView({\r\n\tbackgroundColor:'#f00',\r\n\theight:20,\r\n\twidth:20,\r\n\tleft:10,\r\n\tright:10,\r\n});\r\n\r\ncontainer.add(child1);\r\n\r\nvar child2 = Ti.UI.createView({\r\n\tbackgroundColor:'#0f0',\r\n\theight:20,\r\n\twidth:20,\r\n\tleft:10,\r\n\tright:10,\r\n});\r\n\r\ncontainer.add(child2);\r\n\r\nwin.add(container);\r\n\r\nwin.open();\r\n{code}\r\n\r\nScreenshot 1 shows the output without using the layout property and Screenshot 2 shows the result of using the layout property", "attachment": [ { "id": "27638", "filename": "Screenshot 1.png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-10T13:08:15.000+0000", "size": 23257, "mimeType": "image/png" }, { "id": "27639", "filename": "Screenshot 2.png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-10T13:08:15.000+0000", "size": 22474, "mimeType": "image/png" }, { "id": "28648", "filename": "TIMOB-9099.png", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T11:47:17.000+0000", "size": 223514, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: left/right padding not working with layout:horizontal", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "Ti 2.1 CI (5/3/12)\r\nAndroid 2.x", "comment": { "comments": [ { "id": "196568", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce with master builds (05/30/12).", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T14:01:57.000+0000", "updated": "2012-05-30T14:01:57.000+0000" }, { "id": "196584", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed as part of composite layout enhancements.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T14:31:43.000+0000", "updated": "2012-05-30T14:31:43.000+0000" }, { "id": "199900", "author": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Attached \"TIMOB-9099\" is the new screenshot on the following environment\r\n\r\nTitanium Studio, build: 2.2.0.201206222035\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice:Xoom(4.0.3)\r\n", "updateAuthor": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T11:36:13.000+0000", "updated": "2012-06-23T11:36:13.000+0000" }, { "id": "199935", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Two things to note: first, are the attached screenshots accurate? They don't seem to match the text. Varun?\r\n\r\nSecond, please see attached screenshot showing 2.1.0 behavior, is this expected (the lack of padding at between the top of the container and the two child views)?", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T14:51:06.000+0000", "updated": "2012-06-23T14:51:06.000+0000" }, { "id": "199967", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Eric, compare to iOS/MobileWeb.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T18:46:25.000+0000", "updated": "2012-06-23T18:46:25.000+0000" }, { "id": "200068", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After discussing with the team, the result as seen in the last attachment is expected. The horizontal layout with both children having left and right of 10 results in 10, child 1, 20, child 2, 10. The lack of buffer at the top of the container view is also expected. This behavior is identical on iOS and Android. Closing as fixed with SDK 2.1.0.v20120621224153.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-25T11:44:02.000+0000", "updated": "2012-06-25T11:44:02.000+0000" }, { "id": "202524", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-10T23:51:10.000+0000", "updated": "2012-07-10T23:51:10.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }