{ "id": "165192", "key": "TIMOB-24277", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-24T07:53:11.000+0000", "created": "2017-01-05T14:51:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "54911", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "167828", "key": "AC-4976", "fields": { "summary": "TIMOB-24277 has layout bug", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "55102", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "168154", "key": "TIMOB-24792", "fields": { "summary": "Android: Horizontal layouts do not behave correctly with 'right'", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-09T16:36:30.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": "{{ListView}} items with {{layout: 'horizontal'}} do not display correctly.\r\n\r\n*TEST CASE*\r\n{code: java}\r\nvar win = Ti.UI.createWindow(),\r\n\titems = [],\r\n\ttemplate = {\r\n\t\tproperties: {\r\n\t\t\taccessoryType: Ti.UI.LIST_ACCESSORY_TYPE_NONE,\r\n\t\t\tbackgroundColor: 'white',\r\n\t\t\theight: Ti.UI.SIZE,\r\n\t\t\tlayout: 'horizontal'\r\n\t\t},\r\n\t\tevents: {\r\n\t\t\tclick: function(e) {\r\n\t\t\t\talert(e.source.customProperty);\r\n\t\t\t}\r\n\t\t},\r\n\t\tchildTemplates:\r\n\t\t[\r\n\t\t\t{\r\n\t\t\t\ttype: 'Ti.UI.Button',\r\n\t\t\t\tbindId: 'bindButton',\r\n\t\t\t\tproperties: {\r\n\t\t\t\t\tleft: 10,\r\n\t\t\t\t\twidth: 100,\r\n\t\t\t\t\theight: 40,\r\n\t\t\t\t\tborderRadius: 20,\r\n\t\t\t\t\tborderWidth: 1,\r\n\t\t\t\t\tborderColor: '#dedede',\r\n\t\t\t\t\tbackgroundColor: 'green'\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttype : 'Ti.UI.Button',\r\n\t\t\t\tbindId : 'bindButton2',\r\n\t\t\t\tproperties : {\r\n\t\t\t\t\tright: 10,\r\n\t\t\t\t\twidth: 100,\r\n\t\t\t\t\theight: 40,\r\n\t\t\t\t\tborderRadius: 20,\r\n\t\t\t\t\tborderWidth: 1,\r\n\t\t\t\t\tborderColor: '#dedede',\r\n\t\t\t\t\tbackgroundColor: 'red'\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tlistView = Ti.UI.createListView({templates: {'template': template}}),\r\n\tsection = Ti.UI.createListSection();\r\n\r\nfor(var i = 1; i <= 10; i++){\r\n\titems.push({\r\n\t\ttemplate: 'template',\r\n\t\tbindButton: {\r\n\t\t title: 'button a ' + i,\r\n\t\t customProperty: i\r\n\t\t},\r\n\t\tbindButton2: {\r\n\t\t title: 'button b ' + i,\r\n\t\t customProperty: i\r\n\t\t},\r\n\t\tproperties: {\r\n\t\t itemId: i\r\n\t\t}\r\n\t});\r\n}\r\n\r\nsection.setItems(items);\r\nlistView.sections = [section];\r\n\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\n*EXPECTED*\r\n!ios.jpg|thumbnail!\r\n\r\n*ACTUAL*\r\n!android.jpg|thumbnail!", "attachment": [ { "id": "61178", "filename": "android.jpg", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-05T14:54:18.000+0000", "size": 150410, "mimeType": "image/jpeg" }, { "id": "61177", "filename": "ios.jpg", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-05T14:54:18.000+0000", "size": 87887, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: ListView horizontal layout ignores 'right'", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 }, { "id": 896, "state": "closed", "name": "2017 Sprint 11 SDK", "startDate": "2017-05-22T02:41:17.888Z", "endDate": "2017-06-05T02:41:00.000Z", "completeDate": "2017-06-05T00:14:33.418Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404149", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8730", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-05T14:59:44.000+0000", "updated": "2017-01-05T14:59:44.000+0000" }, { "id": "407606", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed in 6.1.0.v20170222102258. \r\nTest information available in https://github.com/appcelerator/titanium_mobile/pull/8730 ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-22T19:03:51.000+0000", "updated": "2017-02-22T19:03:51.000+0000" }, { "id": "420086", "author": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "updateAuthor": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "created": "2017-05-22T01:47:39.000+0000", "updated": "2017-05-22T01:47:39.000+0000" }, { "id": "420088", "author": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "updateAuthor": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "created": "2017-05-22T01:50:57.000+0000", "updated": "2017-05-22T01:50:57.000+0000" }, { "id": "420094", "author": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "body": "I send PR after solving this problem.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/9073", "updateAuthor": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "created": "2017-05-22T03:44:52.000+0000", "updated": "2017-05-22T03:44:52.000+0000" }, { "id": "420095", "author": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "body": "I send PR after solving this problem.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/9073", "updateAuthor": { "name": "engross", "key": "engross", "displayName": "Dongwoo Gim", "active": true, "timeZone": "Asia/Seoul" }, "created": "2017-05-22T03:44:58.000+0000", "updated": "2017-05-22T03:44:58.000+0000" }, { "id": "420126", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "During test, please ensure you review AC-4976", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-22T16:58:18.000+0000", "updated": "2017-05-22T16:58:18.000+0000" }, { "id": "420284", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR for 6.1.0: https://github.com/appcelerator/titanium_mobile/pull/9076", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-23T21:10:07.000+0000", "updated": "2017-05-23T21:10:07.000+0000" }, { "id": "420309", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for backport PR.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-24T00:03:29.000+0000", "updated": "2017-05-24T00:03:29.000+0000" }, { "id": "420351", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-24T18:05:47.000+0000", "updated": "2017-05-24T18:05:47.000+0000" }, { "id": "421154", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think this patch broke this code:\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#000'\r\n});\r\n\r\nvar view_content = Ti.UI.createView({\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.FILL,\r\n\tlayout: \"horizontal\"\r\n})\r\n\r\nfor (var i = 0; i < 10; ++i) {\r\n\tvar dot = Ti.UI.createView({\r\n\t\tborderColor: '#fff',\r\n\t\twidth: 6,\r\n\t\theight: 6,\r\n\t\tborderRadius: 3,\r\n\t\tborderWidth: 1,\r\n\t\tright: 3,\r\n\t\tbackgroundColor: (i == 0) ? \"#fff\" : \"transparent\"\r\n\t});\r\n\r\n\tview_content.add(dot);\r\n}\r\n\r\n\r\nwin.add(view_content);\r\nwin.open();\r\n{code}\r\n\r\nwith 6.0.4.GA it worked fine (displaying 10 circles). But in 6.1.0.GA I have to set {{left:0}} now to get my circles to display. With just {{right:3}} it won't work anymore\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-07T09:06:00.000+0000", "updated": "2017-06-07T09:06:00.000+0000" }, { "id": "421627", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For everyone's reference, the issue [~michael] mentioned is being handled in TIMOB-24792.\r\n\r\n[~michael], we plan on fixing this in v6.1.1 to be made available soon. Sorry about the inconvenience. We're adding more layout tests on our end to help avoid these issues in the future.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-09T16:31:25.000+0000", "updated": "2017-06-09T16:31:25.000+0000" }, { "id": "421628", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thank you for the feedback! Since there is a workaround (setting the other position to 0) it can be fixed when updating (or I just wait for 6.1.1 :) ). Didn't spot that in the RC, so next time I'll do some more beta testing too!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-09T16:36:30.000+0000", "updated": "2017-06-09T16:36:30.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }