{ "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\n

To Reproduce

\r\n

Step 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\n
\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\n

Tested

\r\n

TiSDK 1.6.0, iOS SDK 4.2, iPhone4 iOS 4.2.1

\r\n

Associated Helpdesk Ticket

\r\n

http://developer.appcelerator.com/helpdesk/view/76331

{html}", "attachment": [], "flagged": false, "summary": "iOS: tableView rows display in background when backgroundColor: 'transparent'", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130473", "author": { "name": "brice", "key": "brice", "displayName": "Brice", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hello,
\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.

{html}", "updateAuthor": { "name": "brice", "key": "brice", "displayName": "Brice", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:24.000+0000", "updated": "2011-04-15T03:41:24.000+0000" }, { "id": "130474", "author": { "name": "adamcampbell", "key": "adamcampbell", "displayName": "Adam Campbell", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

\n

I 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.

{html}", "updateAuthor": { "name": "adamcampbell", "key": "adamcampbell", "displayName": "Adam Campbell", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:25.000+0000", "updated": "2011-04-15T03:41:25.000+0000" }, { "id": "130475", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(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...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:25.000+0000", "updated": "2011-04-15T03:41:25.000+0000" }, { "id": "130476", "author": { "name": "pierredebut", "key": "pierredebut", "displayName": "Pierre Debut", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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 ?

{html}", "updateAuthor": { "name": "pierredebut", "key": "pierredebut", "displayName": "Pierre Debut", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:26.000+0000", "updated": "2011-04-15T03:41:26.000+0000" }, { "id": "130477", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested with
\nSimulator 4.1
\niPhone4 4.3
\nEmulator 2.1

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:26.000+0000", "updated": "2011-04-15T03:41:26.000+0000" }, { "id": "130478", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Reopening. The cure was worse than the disease.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:26.000+0000", "updated": "2011-04-15T03:41:26.000+0000" }, { "id": "130479", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Moving this along with most tableview items to 1.8.0.

{html}", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:27.000+0000", "updated": "2011-04-15T03:41:27.000+0000" }, { "id": "194861", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on the iOS simulator, unable to reproduce. Ticket closed.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-15T11:18:54.000+0000", "updated": "2012-05-15T11:18:54.000+0000" }, { "id": "207915", "author": { "name": "kasanbekov", "key": "kasanbekov", "displayName": "Kanat Asanbekov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Titanium Studio, build: 2.1.1.201207121732\r\nTitanium SDK: 2.2.0.v20120716092112\r\nDevices: iPod Newton 4.3.5", "updateAuthor": { "name": "kasanbekov", "key": "kasanbekov", "displayName": "Kanat Asanbekov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T17:21:45.000+0000", "updated": "2012-07-16T17:21:45.000+0000" }, { "id": "211180", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-02T04:21:48.000+0000", "updated": "2012-08-02T04:21:48.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }