{ "id": "88499", "key": "TIMOB-8193", "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-04T14:21:43.000+0000", "created": "2012-03-22T12:34:53.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_view", "parity", "qe-testadded" ], "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" }, "inwardIssue": { "id": "88529", "key": "TIMOB-8205", "fields": { "summary": "Android: 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 } } } }, { "id": "16303", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "89484", "key": "TIMOB-8516", "fields": { "summary": "iOS: UI.View: intermittent deadlock warning", "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": "15963", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "88657", "key": "TIMOB-8257", "fields": { "summary": "Android: \"Horizontal\" (and possibly other) layout behavior is incorrect in Rhino", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-04T14:21:43.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": "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.\r\n\r\nh4. Repo Steps\r\n1.Run the below code in app.js\r\n2.You will see the orange view actually appears centered on the red view and the blue view actually appears at position 0,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": "26832", "filename": "expected.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T14:21:14.000+0000", "size": 12199, "mimeType": "image/png" }, { "id": "26478", "filename": "ios_vs_android.png", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T15:48:43.000+0000", "size": 63984, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: 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": "iOS5\r\nTitanium Studio 1.0.9.201202141208\r\niPhone 4", "comment": { "comments": [ { "id": "188044", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Note that the code works correctly on Android.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-22T12:59:56.000+0000", "updated": "2012-03-22T12:59:56.000+0000" }, { "id": "188088", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Vishal, see the attached iOS vs Android layout behavior after the fix. ", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T15:48:43.000+0000", "updated": "2012-03-22T15:48:43.000+0000" }, { "id": "188127", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Originally reported issue is fixed, but reopening due to blue box should be vertically centered within red box as on Android.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T20:25:24.000+0000", "updated": "2012-03-22T20:25:24.000+0000" }, { "id": "188455", "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.v20120323221800\r\nTitanium Studio, build: 2.0.0.201203240504\r\nxcode: 4.3\r\nDevice: iphone 4s Verizon (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T09:14:20.000+0000", "updated": "2012-03-24T09:14:20.000+0000" }, { "id": "188559", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fix on SDK 2.0.0.v20120325213306. Thanks!", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-26T06:53:56.000+0000", "updated": "2012-03-26T06:53:56.000+0000" }, { "id": "189870", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Attaching screenshot of expected behavior.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T14:13:47.000+0000", "updated": "2012-04-04T14:19:57.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }