{ "id": "143447", "key": "TIMOB-19170", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-01-12T04:23:31.000+0000", "created": "2015-01-23T15:42:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "TCSupportTriage", "listview", "qe-5.4.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-06-09T21:53:22.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": "~~~\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n~~~\r\n\r\ndata object\r\n~~~\r\ndata.push({\r\n title: {\r\n \r\n },\r\n subtitle: {\r\n \r\n },\r\n text: {\r\n \r\n },\r\n img: {\r\n \r\n },\r\n properties: {\r\n height: 122,\r\n backgroundGradient:{\r\n colors: [{\r\n color: '#ffffff',\r\n offset: 0.0\r\n }, {\r\n color: '#000000',\r\n offset: 1.0\r\n }],\r\n\r\n type: 'linear'\r\n }\r\n }\r\n });\r\n~~~\r\n\r\nbackgroundGradient looks wrong\r\n\r\nIf I use just a selectedBackgroundGradient with the same color it looks correct. If I use both together the selectedBackgroundGradient has the same width/height as the backroundGradient and the rest of the selected row is grey\r\n\r\n\r\niOS 8\r\nTitanium 3.5.0\r\nOSX\r\n", "attachment": [ { "id": "53816", "filename": "IMG_0777.jpg", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-26T10:55:07.000+0000", "size": 139731, "mimeType": "image/jpeg" }, { "id": "53814", "filename": "list_default.jpg", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-26T10:48:16.000+0000", "size": 48528, "mimeType": "image/jpeg" }, { "id": "53815", "filename": "list_hl.jpg", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-26T10:48:45.000+0000", "size": 56353, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: ListView backgroundGradient not full row size", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 555, "state": "closed", "name": "2016 Sprint 1 SDK", "startDate": "2016-01-02T01:31:50.127Z", "endDate": "2016-01-16T01:31:00.000Z", "completeDate": "2016-01-18T00:52:43.848Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "340536", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nI am afraid I do not understand your case, please provide the reproduce steps with simple test case, you current codes did not explain the problem you have. And also provide the symptom of your problem, like what it should look like, what is not. (screenshot or short video will be better to show). Thanks\r\n\r\nRegards\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-26T04:13:58.000+0000", "updated": "2015-01-26T04:13:58.000+0000" }, { "id": "340549", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "second image:\r\nlistview nothing selected; just a background color\r\n\r\nthird image:\r\nlistview with row selected; backgroundColor and selectedBackgroundGradient", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-26T10:48:45.000+0000", "updated": "2015-01-26T10:53:20.000+0000" }, { "id": "340550", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've added two more screenshots of a working version:\r\n\r\nlistviewitem properties are just backgroundColor and selectedBackgroundGradient.\r\n\r\nIf I set backgroundGradient it will look like in the first two images! The gradient is just around 300px width and 50px height (the white to black gradient). If I change the gradient to a plain color it will look right again (new image)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-26T10:52:40.000+0000", "updated": "2015-01-26T10:52:40.000+0000" }, { "id": "373423", "author": { "name": "cupajoe71", "key": "cupajoe71", "displayName": "Nader Ayoub", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I had the same issue. On Android, the gradient fills entire list Item. On ios, it only goes about 300 wide, and then stops. The background color goes 100%, but the gradient does not.\r\n\r\nAny resolution?", "updateAuthor": { "name": "cupajoe71", "key": "cupajoe71", "displayName": "Nader Ayoub", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-22T22:39:31.000+0000", "updated": "2015-12-22T22:39:31.000+0000" }, { "id": "373979", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/7620\r\n\r\nUse the app.js mentioned in comments for testing the fix. ", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-01-07T04:28:50.000+0000", "updated": "2016-01-07T04:29:17.000+0000" }, { "id": "387975", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed.\r\n
Tested on:
\r\niPhone 6s Plus (9.3.1)\r\niOS Simulator (9.3)\r\n
Mac OSX El Capitan 10.11.4\r\nStudio: 4.7.0.201606070951
\r\nTi SDK: 5.4.0.v20160608165242
\r\nAppc NPM: 4.2.7-2\r\nAppc CLI: 5.4.0-13\r\n
Xcode 7.3\r\nNode v0.12.7
\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-09T21:52:47.000+0000", "updated": "2016-06-09T21:52:47.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }