{ "id": "139382", "key": "TIMOB-19167", "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": "2014-11-11T11:19:58.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "3.4.0", "3.4.1", "TCSupportTriage", "engTriage", "iOS8", "searchbar", "tableview" ], "versions": [ { "id": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" } ], "issuelinks": [], "assignee": null, "updated": "2019-12-16T18:28:25.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": "h2. Problem description\r\nThe searchbar for the tableview is not rendered when the display area for the searchbar is out of the display range.\r\n\r\nh2. Steps to reproduce\r\n1. Tap the nav button \"search\" to show the searchbar of the tableview\r\n2. Tap the nav button again to hide the searchbar\r\n3. Scroll down to the last entry of the tableview \r\n4. Tap the nav button \"search\"\r\n\r\nResult: The searchbar is not rendered. There is only a white area on the top of the tableview.\r\n\r\nHint: Tap on the white area and the search will appear\r\n\r\nh2. Test case\r\n{code:lang=javascript|title=app.js}\r\n(function() {\r\n\tTi.UI.backgroundColor = 'white';\r\n\t\r\n\tvar win = Ti.UI.createWindow();\r\n\tvar navWin = Titanium.UI.iOS.createNavigationWindow({window: win});\r\n\tvar rightNavBtn = Ti.UI.createButton({title: L('search')});\r\n\tvar tableData = [];\r\n\tvar tableView;\r\n\tvar searchBar = Titanium.UI.createSearchBar();\r\n\t\r\n\tfor (var i=0; i < 50; i++) {\r\n\t tableData.push({title: 'Entry ' + i});\r\n\t}\r\n\t\r\n\ttableView = Ti.UI.createTableView({data: tableData});\r\n\r\n rightNavBtn.addEventListener('click', function(){\r\n \tif(tableView.getSearch()){\r\n \t\ttableView.setSearch(null);\r\n \t}else{\r\n tableView.setSearch(searchBar); \r\n tableView.scrollToTop(0);\r\n \t}\r\n });\t\r\n \r\n win.rightNavButton = rightNavBtn;\r\n \r\n\twin.add(tableView);\r\n\tnavWin.open();\r\n})();\t\r\n{code}", "attachment": [], "flagged": false, "summary": "ios: t of tTableView SearchBar is not rendered when the display area is out of the display range", "creator": { "name": "Esche", "key": "esche", "displayName": "Markus Eschenbach", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Esche", "key": "esche", "displayName": "Markus Eschenbach", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version: 3.4.0 GA & 3.4.1 GA\r\nPlatform & version: & iOS 8.1 & iOS 8.1.1\r\nDevice Details: iPhone 5 and 5S and Simulator\r\nHost Operating System: OS X 10.9 & OS X 10.10\r\nTitanium Studio version: 3.4.0.201409261227", "comment": { "comments": [], "maxResults": 5, "total": 5, "startAt": 0 } } }