{ "id": "63921", "key": "TIMOB-3289", "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": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-02T04:22:20.000+0000", "created": "2011-04-15T03:41:23.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_tableview", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "10762", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "65910", "key": "TIMOB-4251", "fields": { "summary": "Reimplement TableViews and provide minimal dynamic data source API", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-10T11:32:57.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": "{html}
If backgroundColor:'transparent' in a tableView the original\r\nrows can be seen behind the search results
\r\nStep 1: run code below
\r\nStep 2: search for something
\r\nStep 3: notice that if you search for 1 or 2 you will see the\r\noriginal 4 rows behind the search results, and if you search for\r\nanything else all you will still see the original 4 rows
\r\nTitanium.UI.setBackgroundColor('#fff');\r\n\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar search = Titanium.UI.createSearchBar({\r\n hintText: \"Search\",\r\n barColor:'#0055ad'\r\n});\r\n\r\nvar data = [\r\n {title: '1'},\r\n {title: '2'},\r\n {title: '12'},\r\n {title: '21'} \r\n];\r\n\r\nvar tableview = Titanium.UI.createTableView({\r\n backgroundColor:'transparent',\r\n separatorStyle: Titanium.UI.iPhone.TableViewSeparatorStyle.NONE,\r\n search:search,\r\n data:data\r\n});\r\n\r\nwin.add(tableview);\r\nwin.open();
\r\n
\r\nTiSDK 1.6.0, iOS SDK 4.2, iPhone4 iOS 4.2.1
\r\nHello,
\njust to add info; if the background of the tableview is set to a\ncolor, then when you do a search it's fine, but if you do another\nsearch, you see the separator beneath the filtered rows.
The same issue occurs when simply setting a tableview to have\nbackground: 'transparent' and you drag it down or up. You can see\nthe rows behind the table.
\nI was able to resolve the issue by setting the tableview's\nbackground image to match my window's background image, I suppose\njust covering the glitchy rows.
(from [2099b2d022a9a33c1d66125fc8c20524679af803])\n[#3289 state:fixed-in-qa] Make sure main table\ndata is not shown when being filtered by a search term \nhttps://github.com/appcelerator/titanium_mobile/commit/2099b2d022a9...
Hi
\nI made the changes to the file TiUITableView.m in the folder of my\napplication but it does not work.
\nAre there any other operations to be performed ?
Tested with
\nSimulator 4.1
\niPhone4 4.3
\nEmulator 2.1
Reopening. The cure was worse than the disease.
Moving this along with most tableview items to 1.8.0.