{ "id": "111389", "key": "TIMOB-13110", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-03-19T08:05:52.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:26.000+0000", "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" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Description\r\nOn click of a \"Search\" button, it forces the search bar to gain focus by : table.getSearch().focus(). But, when on scrolling the table down, and click on the Search button causes the screen to blur sometimes but the search bar is nowhere to be seen. Although the search bar gains focus (evident from keyboard scrolling up).\r\n\r\nAlso, the content of the table view not able to scroll up. While the same code runs fine in iPhone.\r\n\r\nh3. Steps to reproduce :\r\n\r\n1. Please use the below code in app.js:\r\n{code}\r\nvar win1 = Titanium.UI.createWindow();\r\n\r\nvar win2 = Titanium.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Sample Window'\r\n});\r\n\r\nvar tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'}, {title: 'Potatoes'}, {title: 'Potatoes'} ]; // add some more data so that to scroll on IPad \r\n\r\nvar serachbar = Titanium.UI.createSearchBar({\r\n});\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: tableData,\r\n searchHidden : true,\r\n hideSearchOnSelection : false,\r\n search : serachbar\r\n});\r\nwin2.add(table);\r\n\r\nvar test = Ti.UI.createButton({\r\n\ttitle : 'serach'\r\n});\r\ntest.addEventListener('click', function(){\r\n\ttable.getSearch().focus();\r\n});\r\n\r\nvar nav = Titanium.UI.iPhone.createNavigationGroup({\r\n window: win2\r\n});\r\nwin2.rightNavButton = test;\r\n\r\n\r\nwin1.add(nav);\r\nwin1.open();\r\n{code}\r\n2. Run the application in iPad Simulator.\r\n3. Scroll the table to some extent so that the search bar scrolls up. Click the \"Search\" button.Now you will not be able to scroll through the content and also the search bar is nowhere to be seen.", "attachment": [], "flagged": false, "summary": "IOS:Tableview with a search bar in IPad does not allow scrolling when button is clicked that forces the search bar to gain focus by : table.getSearch().focus() and also the search bar is nowhere to be seen", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK: 2.1.4GA,3.0.0GA,3.0.2GA, 3.2.0.GA\r\nIPad Simulator", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }