{ "id": "92500", "key": "TIMOB-9301", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13408", "description": "Sprint 2012-12 API", "name": "Sprint 2012-12 API", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-12T00:56:01.000+0000", "created": "2012-05-29T15:30:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tableview", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-12T10:47:37.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": "*Code*\r\napp.js\r\n{code}\r\nvar SplitViewApp = {};\r\n\r\nSplitViewApp.masterWindow = Ti.UI.createWindow({\r\n title:'Master',\r\n backgroundColor: '#fff',\r\n url:'master.js'\r\n});\r\n\r\nSplitViewApp.detailWindow = Ti.UI.createWindow({\r\n title:'Detail',\r\n backgroundColor: '#fff',\r\n url:'detail.js'\r\n});\r\n\r\n\r\nSplitViewApp.masterNav = Ti.UI.iPhone.createNavigationGroup({\r\n window: SplitViewApp.masterWindow\r\n});\r\n\r\nSplitViewApp.detailNav = Ti.UI.iPhone.createNavigationGroup({\r\n window: SplitViewApp.detailWindow\r\n});\r\n\r\nSplitViewApp.splitView = Ti.UI.iPad.createSplitWindow({\r\n masterView: SplitViewApp.masterNav,\r\n detailView: SplitViewApp.detailNav\r\n});\r\n\r\nSplitViewApp.splitView.addEventListener('visible', function(e) {\r\n if (e.view == 'detail') {\r\n e.button.title = \"Master View List\";\r\n SplitViewApp.detailWindow.leftNavButton = e.button;\r\n }\r\n else if (e.view == 'master') {\r\n SplitViewApp.detailWindow.leftNavButton = null;\r\n }\r\n});\r\n\r\nSplitViewApp.splitView.open();\r\n\r\n{code}\r\n\r\nmaster.js\r\n{code}\r\nvar MASTER_WINDOW = {};\r\n\r\n(function(){\r\n var win = Ti.UI.currentWindow;\r\n \r\n var tableData = [];\r\n \r\n for(var i = 0; i < 100; i++) {\r\n tableData.push(Ti.UI.createTableViewRow({title: 'Row ' + i}));\r\n }\r\n \r\n function tableClick(e) {\r\n var data = {\r\n 'row': e.index,\r\n 'title': e.row.title \r\n }\r\n \r\n Ti.App.fireEvent('app:rowClicked', data);\r\n }\r\n \r\n MASTER_WINDOW.init = function(){\r\n var tableView = Ti.UI.createTableView({\r\n allowsSelection: true,\r\n data: tableData\r\n });\r\n \r\n var tableSearch = Ti.UI.createSearchBar({\r\n barColor: '#ccc',\r\n hintText: 'Search',\r\n showCancel: false\r\n });\r\n \r\n tableView.search = tableSearch;\r\n \r\n win.add(tableView); \r\n \r\n tableView.addEventListener('click', tableClick); \r\n }\r\n})();\r\n\r\nMASTER_WINDOW.init();\r\n\r\n{code}\r\n\r\ndetail.js\r\n{code}\r\nvar DETAIL_WINDOW = {};\r\n\r\n(function(){\r\n var win = Ti.UI.currentWindow;\r\n var label = Ti.UI.createLabel({\r\n borderColor: '#000',\r\n borderWidth: 1,\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE\r\n });\r\n \r\n win.add(label);\r\n \r\n function rowClicked(data) {\r\n label.text = data.title;\r\n }\r\n \r\n DETAIL_WINDOW.init = function() {\r\n Ti.App.addEventListener('app:rowClicked', rowClicked);\r\n }\r\n})();\r\n\r\nDETAIL_WINDOW.init();\r\n{code}\r\n\r\n\r\n\r\n*Expected behavior*\r\nWhen you tap on the 'Master View List' button in the top left, and then select any random row, it should highlight it. Now when you change orientations, the highlight should stay.\r\n\r\n*Actual behavior*\r\nWhen you change the orientation of the device, it deselects the highlight.\r\n\r\n*Notes*\r\n-Only tested on the iPad simulator.\r\n-Workaround is to remove the search bar, i.e. comment out lines 27-33 in the master.js file, however this is not acceptable.\r\n-The original issue was TIMOB-2724, now that it has been fixed, the CI build has this problem. It works fine if the search bar is removed. On the stable 2.0.1GA2, it doesn't work either way, it always deselects the row highlight, no matter if you display or don't display the search bar.", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.TableView - rows are not highlighted anymore when you change orientation", "creator": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "environment": "TiSDK: 2.0.1GA2 and CI 2.1.0.v20120529084742\r\nTiStudio: 2.0.1.201204132053\r\nPlatform: iPad 5.0 simulator", "comment": { "comments": [ { "id": "198619", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T17:10:29.000+0000", "updated": "2012-06-14T17:10:29.000+0000" }, { "id": "199015", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK2.1.0.v20120618134156 hash r00905cd0\r\nOSX Lion 10.7.3\r\niPad 3 OS 5.1.1\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T17:02:13.000+0000", "updated": "2012-06-18T17:02:13.000+0000" }, { "id": "202867", "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-07-12T00:55:35.000+0000", "updated": "2012-07-12T00:55:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }