{ "id": "171634", "key": "TIMOB-26021", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-17T07:34:44.000+0000", "created": "2018-05-09T10:33:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "backgroundColor", "ios", "searchbar", "tableView" ], "versions": [], "issuelinks": [ { "id": "56505", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "153731", "key": "TIMOB-23281", "fields": { "summary": "Search Bar: search results listview background color change", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-06-12T19:43:03.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": "I have a window with backgroundImage and a tableView with backgroundColor transparent and labels of all item white.\r\nWhen I click on searchBar and start typing the backgroundColor of tableView became white and the results are unreadable because item's labels have the same color of background.\r\n\r\nAndroid work fine with the same component Ti.UI.createSearchBar", "attachment": [], "flagged": false, "summary": "iOS: Search results table-view background color change", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "437502", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/10033\r\n\r\nTest-Case:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n \r\n// TableView\r\nvar searchTable = Titanium.UI.createSearchBar({\r\n barColor: '#000',\r\n showCancel: true,\r\n height: 43,\r\n top: 0,\r\n});\r\n \r\nsearchTable.addEventListener('cancel', function() {\r\n searchTable.blur();\r\n});\r\n \r\nvar table = Ti.UI.createTableView({\r\n top: 20,\r\n height: 300,\r\n backgroundColor: 'transparent',\r\n resultsBackgroundColor: 'red',\r\n resultsSeparatorColor: 'green',\r\n resultsSeparatorInsets: {\r\n left: 0\r\n },\r\n data: [\r\n {title: 'Apples', backgroundColor: 'transparent', color: 'white'},\r\n {title: 'Bananas', backgroundColor: 'transparent', color: 'white'},\r\n {title: 'Carrots', backgroundColor: 'transparent', color: 'white'},\r\n {title: 'Potatoes', backgroundColor: 'transparent', color: 'white'}\r\n ],\r\n search: searchTable\r\n});\r\n \r\n//ListView\r\nvar searchList = Titanium.UI.createSearchBar({\r\n barColor: '#000',\r\n showCancel: true,\r\n height: 43,\r\n top: 0,\r\n});\r\n \r\nsearchList.addEventListener('cancel', function() {\r\n searchList.blur();\r\n});\r\n \r\nvar list = Ti.UI.createListView({\r\n backgroundColor: 'transparent',\r\n top: 350,\r\n height: 300,\r\n searchView: searchList,\r\n \r\n resultsBackgroundColor: 'red',\r\n resultsSeparatorColor: 'green',\r\n resultsSeparatorInsets: {\r\n left: 0\r\n },\r\n \r\n templates: {\r\n 'a': {\r\n properties: {\r\n backgroundColor: 'transparent'\r\n },\r\n childTemplates: [{\r\n type: 'Ti.UI.Label',\r\n bindId: 'bindLabel',\r\n properties: {\r\n color: '#fff'\r\n }\r\n \r\n }]\r\n }\r\n }\r\n});\r\n \r\nvar section = Ti.UI.createListSection();\r\nvar data = ['Apple', 'Banana', 'Carrots', 'Potatoes'];\r\nvar items = [];\r\nfor (var i = 0; i < data.length; i++) {\r\n items.push({\r\n template: 'a',\r\n properties: {\r\n searchableText: data[i]\r\n },\r\n bindLabel: {\r\n text: data[i]\r\n }\r\n });\r\n}\r\nsection.setItems(items);\r\nlist.sections = [section];\r\n \r\nwin.add(table);\r\nwin.add(list);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-05-09T10:36:01.000+0000", "updated": "2018-05-09T10:36:01.000+0000" }, { "id": "438367", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180607210411\r\n\r\nOther information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10033\r\n\r\nAble to see search result items and background colour no longer remains white when searching for an item\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4-5\r\niphone 6 plus (10.2)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13\r\nNode.js Version: 8.9.1\r\nXcode 9.2\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-12T19:42:56.000+0000", "updated": "2018-06-12T19:42:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }