{ "id": "120204", "key": "TIMOB-15282", "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": "15691", "description": "2013 Sprint 19", "name": "2013 Sprint 19", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15693", "description": "2013 Sprint 19 API", "name": "2013 Sprint 19 API", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15747", "description": "Release 3.1.4", "name": "Release 3.1.4", "archived": true, "released": false }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-20T21:53:34.000+0000", "created": "2013-09-19T16:10:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "module_searchbar", "qe-testadded", "triage" ], "versions": [], "issuelinks": [ { "id": "36496", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "128786", "key": "TIMOB-16825", "fields": { "summary": "iOS 7: ListView - SearchBar disappears on device rotation if there are no text in the SearchBar", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-08T02:00:02.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": "h2. Problem description\r\nDevice rotation impacts on the visualization of the search bar. The bar disappears if there is text in it and device is rotated, or if the search button on the virtual keyboard is pressed.\r\n\r\nh2. Steps to reproduce\r\nUse this code:\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar win1 = Titanium.UI.createWindow({\r\n title : 'Table with Search'\r\n});\r\nvar tab1 = Titanium.UI.createTab({\r\n title : 'Table w/ Search',\r\n window : win1\r\n});\r\n \r\nvar allNoteTypes = [{\r\n title : 'Plan 1'\r\n}, {\r\n title : 'Plan 2'\r\n}, {\r\n title : 'Plan 3'\r\n}];\r\n \r\nvar searchBar = Ti.UI.createSearchBar({\r\n barColor : \"#283D5A\"\r\n});\r\n \r\nvar table = Ti.UI.createTableView({\r\n top : 0,\r\n width : \"100%\",\r\n backgroundColor : 'transparent',\r\n hideSearchOnSelection : false,\r\n data : allNoteTypes,\r\n search : searchBar\r\n});\r\n \r\nwin1.add(table);\r\n \r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n{code}\r\n\r\nThere are two ways to replicate:\r\n\r\n1) focus the bar, write something, then rotate the screen\r\n2) focus the bar, write something and press return in the virtual keyboard\r\n\r\nh2. Note\r\nNot sure if this can be considered related: the CANCEL button also stops working when the device is rotated. With the same code, focus the bar and rotate the screen: the CANCEL button stops working.\r\n\r\nThe feature only come back when the app is restarted (e.g. rotating the device back does not help).", "attachment": [], "flagged": false, "summary": "iOS7: SearchBar disappears when device rotates", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.1.3.GA\r\niOS 7", "comment": { "comments": [ { "id": "271918", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~dcassenti] Does this relate to TIMOB-15281?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-19T16:20:16.000+0000", "updated": "2013-09-19T16:20:16.000+0000" }, { "id": "272033", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4717", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-19T22:23:43.000+0000", "updated": "2013-09-19T22:23:43.000+0000" }, { "id": "272041", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case with ListView and TableView\n{code}\nTitanium.UI.setBackgroundColor('#fff');\nvar win1 = Titanium.UI.createWindow({\n title : 'Table with Search',\n //fullscreen:true\n});\n\n\nvar allNoteTypes = [{\n title : 'Plan 1'\n}, {\n title : 'Plan 2'\n}, {\n title : 'Plan 3'\n}];\n \nvar searchBar = Ti.UI.createSearchBar({\n barColor : \"#283D5A\"\n});\n \nvar table = Ti.UI.createTableView({\n top : 0,\n width : \"100%\",\n backgroundColor : 'transparent',\n hideSearchOnSelection : false,\n data : allNoteTypes,\n search : searchBar\n});\n \nwin1.add(table);\n\nvar win2 = Titanium.UI.createWindow({\n title : 'List with Search',\n //fullscreen:true\n});\n\n\nvar sections = [];\n \nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});\nvar fruitDataSet = [\n {properties: { title: 'Apple', searchableText:' Fruits Apple', itemId:'0 0', backgroundColor:'transparent'}},\n {properties: { title: 'Banana', searchableText:'Fruits Banana', itemId:'0 1', backgroundColor:'transparent'}},\n {properties: { title: 'Cantaloupe', searchableText:'Fruits Cantaloupe', itemId:'0 2', backgroundColor:'transparent'}},\n {properties: { title: 'Fig', searchableText:'Fruits Fig', itemId:'0 3', backgroundColor:'transparent'}},\n {properties: { title: 'Guava', searchableText:'Fruits Guava', itemId:'0 4', backgroundColor:'transparent'}},\n {properties: { title: 'Kiwi', searchableText:'Fruits Kiwi', itemId:'0 5', backgroundColor:'transparent'}},\n];\nfruitSection.setItems(fruitDataSet);\nsections.push(fruitSection);\n \nvar vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables'});\nvar vegDataSet = [\n {properties: { title: 'Carrots', searchableText:'Vegetables Carrots', itemId:'1 0', backgroundColor:'transparent'}},\n {properties: { title: 'Potatoes', searchableText:'Vegetables Potatoes', itemId:'1 1', backgroundColor:'transparent'}},\n {properties: { title: 'Corn', searchableText:'Vegetables Corn', itemId:'1 2', backgroundColor:'transparent'}},\n {properties: { title: 'Beans', searchableText:'Vegetables Beans', itemId:'1 3', backgroundColor:'transparent'}},\n {properties: { title: 'Tomato', searchableText:'Vegetables Tomato', itemId:'1 4', backgroundColor:'transparent'}},\n];\nvegSection.setItems(vegDataSet);\nsections.push(vegSection);\n \n \nvar fishSection = Ti.UI.createListSection({ headerTitle: 'Fish'});\nvar fishDataSet = [\n {properties: { title: 'Cod', searchableText:'Fish Cod', itemId:'2 0', backgroundColor:'transparent'}},\n {properties: { title: 'Haddock', searchableText:'Fish Haddock', itemId:'2 1', backgroundColor:'transparent'}},\n {properties: { title: 'Salmon', searchableText:'Fish Salmon', itemId:'2 2', backgroundColor:'transparent'}},\n {properties: { title: 'Tuna', searchableText:'Fish Tuna', itemId:'2 3', backgroundColor:'transparent'}},\n];\nfishSection.setItems(fishDataSet);\nsections.push(fishSection);\n\nvar animalsSection = Ti.UI.createListSection({ headerTitle: 'Animals'});\nvar animalsDataSet = [\n {properties: { title: 'Deer', searchableText:'Animals Deer', itemId:'3 0', backgroundColor:'transparent'}},\n {properties: { title: 'Dog', searchableText:'Animals Dog', itemId:'3 1', backgroundColor:'transparent'}},\n {properties: { title: 'Cat', searchableText:'Animals Cat', itemId:'3 2', backgroundColor:'transparent'}},\n {properties: { title: 'Elephant', searchableText:'Animals Elephant', itemId:'3 3', backgroundColor:'transparent'}},\n];\nanimalsSection.setItems(animalsDataSet);\nsections.push(animalsSection);\n\nvar listView = Ti.UI.createListView();\nlistView.sections = sections;\nlistView.headerTitle = 'ListView on iOS can now show searchView and headerTitle (or headerView) together';\n\nvar sv = Titanium.UI.createSearchBar({\n barColor:'#385292',\n showCancel:true,\n hintText:'search'\n });\n\nlistView.searchView = sv;\n\nwin2.add(listView);\n\nvar tabGroup = Titanium.UI.createTabGroup();\nvar tab1 = Titanium.UI.createTab({\n title : 'Table w/ Search',\n window : win1\n});\n\nvar tab2 = Titanium.UI.createTab({\n title : 'List w/ Search',\n window : win2\n});\n\ntabGroup.addTab(tab1);\ntabGroup.addTab(tab2);\ntabGroup.open();\n\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-19T22:52:20.000+0000", "updated": "2013-09-19T22:52:20.000+0000" }, { "id": "272206", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/4722", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-20T20:41:48.000+0000", "updated": "2013-09-20T20:41:48.000+0000" }, { "id": "275263", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "SearchBar stays when it has text and rotated.\r\n\r\nVerified fix on:\r\nDevice : iPhone 5 , iOS version : 7.0\r\nSDK: 3.2.0.v20131013140318\r\nCLI version : 3.2.0\r\nOS : MAC OSX 10.8.4\r\nAlloy : 1.2.2\r\nAppcelerator Studio, build: 3.2.0.201310112258\r\nXCode : 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-16T10:19:22.000+0000", "updated": "2013-10-16T10:19:22.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }