{ "id": "121312", "key": "TIMOB-15526", "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": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15932", "description": "2014 Sprint 05 API", "name": "2014 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-06T18:17:55.000+0000", "created": "2013-10-17T08:40:09.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "popover", "qe-testadded", "supportTeam" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-12T23:16:43.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": "If I create a Popover containing a TableView with a SearchBar, when I filter the TableView by typing in the SearchBar, I see the (correct) filtered TableViewRows overlaid on the full unfiltered table. You can see this in the attached screenshot where Row 4 is at the top and the bottom of the display having typed 4 in the SearchBar.\r\n\r\nThis is visually bad, although the click behaviour is correct (you can click on the filtered rows only).\r\n\r\nWork around is to use a separate SearchBar and populate the table based on change events. I would prefer that it just worked.\r\n\r\nTest code has instructions to see the correct behaviour outside a Popover.\r\n\r\n{code:title=app.js}\r\n// Titanium SearchBar+TableView in Popover shows filtered items over all table items\r\nvar win = Titanium.UI.createWindow({backgroundColor:'white'});\r\n\r\nvar button1 = Titanium.UI.createButton({\r\n\ttitle:'Show popover',\r\n\tborderColor: 'black',\r\n\ttop: 40\r\n});\r\n\r\nwin.add(button1);\r\n\r\nvar data = [];\r\ndata[0] = Ti.UI.createTableViewRow({title:'Row 1'});\r\ndata[1] = Ti.UI.createTableViewRow({title:'Row 2'});\r\ndata[2] = Ti.UI.createTableViewRow({title:'Row 3'});\r\ndata[3] = Ti.UI.createTableViewRow({title:'Row 4'});\r\n\t\r\nvar search = Ti.UI.createSearchBar({});\r\n\r\nvar table = Ti.UI.createTableView({\r\n\tsearch: search,\r\n\tdata: data\r\n});\r\n\r\nvar popover = Ti.UI.iPad.createPopover({});\r\npopover.add(table);\r\n\r\nbutton1.addEventListener('click', function(){\r\n\tpopover.show({view: button1});\r\n\t// comment previous line and uncomment next two lines to see an ugly but correctly functioning table+search\r\n\t//table.top = 40; //iOS7\r\n\t//win.add(table);\r\n\t});\r\n\r\nwin.open();\r\n{code}\r\n", "attachment": [ { "id": "45951", "filename": "sample_project.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-14T22:02:01.000+0000", "size": 2553902, "mimeType": "application/zip" }, { "id": "45952", "filename": "scr_shot1.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-14T22:02:01.000+0000", "size": 96779, "mimeType": "image/png" }, { "id": "45953", "filename": "scr_shot2.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-14T22:02:01.000+0000", "size": 104072, "mimeType": "image/png" }, { "id": "45954", "filename": "scr_shot3.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-14T22:02:01.000+0000", "size": 62982, "mimeType": "image/png" }, { "id": "43261", "filename": "Titanium Popover TableView SearchBar issue.png", "author": { "name": "traggett", "key": "traggett", "displayName": "Tom Raggett", "active": true, "timeZone": "Asia/Hong_Kong" }, "created": "2013-10-17T08:40:09.000+0000", "size": 43517, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Tableview's search filter does not render results correctly in a Popover ", "creator": { "name": "traggett", "key": "traggett", "displayName": "Tom Raggett", "active": true, "timeZone": "Asia/Hong_Kong" }, "subtasks": [], "reporter": { "name": "traggett", "key": "traggett", "displayName": "Tom Raggett", "active": true, "timeZone": "Asia/Hong_Kong" }, "environment": "Titanium 3.1.3.GA, 3.2.1GA\r\niPad simulator iOS7", "comment": { "comments": [ { "id": "295572", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5419", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-04T19:14:54.000+0000", "updated": "2014-03-04T19:14:54.000+0000" }, { "id": "296632", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_2_X\nhttps://github.com/appcelerator/titanium_mobile/pull/5455", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-11T17:48:30.000+0000", "updated": "2014-03-11T17:48:30.000+0000" }, { "id": "296917", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the fix with\nAppcelerator Studio, build: 3.2.1.201402061120\nTitanium SDK, build: 3.2.3.v20140312130857\nDevice:\niPad Air iOS version 7.1\n\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T23:16:03.000+0000", "updated": "2014-03-12T23:16:03.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }