{ "id": "77157", "key": "TIMOB-4532", "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": "11359", "description": "Mobile 1.8.0 M06", "name": "Sprint 2011-27", "archived": true, "released": true, "releaseDate": "2011-07-11" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T14:52:58.000+0000", "created": "2011-06-30T11:43:45.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "scroll", "searchHidden", "searchbar", "tableview" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-10-27T14:52:58.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": "h3. Bug\r\nIf you set \"searchHidden\" to true, you can scroll perfectly the TableView. \r\nBut if you set it to false, you are unable to scroll until you click the SearchBar.\r\n\r\n\r\n{code:title=app.js|borderStyle=solid}\r\n Titanium.UI.setBackgroundColor('#000');\r\n \r\n var tabGroup = Titanium.UI.createTabGroup();\r\n \r\n var win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n });\r\n win1.addEventListener('focus', function(){\r\n\t\ttableview.searchHidden = false;\r\n\t\tTi.API.info(\"tableView = false\");\r\n });\r\n \r\n var tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n });\r\n \r\n var searchBar = Ti.UI.createSearchBar({\r\n \tcancel:false\r\n });\r\n \r\n var tableview = Ti.UI.createTableView({\r\n search: searchBar,\r\n scrollable:true,\r\n data:[ { title:'dog'}, { title:\"cat\"}, { title:\"bird\"},\r\n \t { title:'frog'}, { title:\"turtle\"}, { title:\"lizard\"},\r\n \t { title:'hamster'}, { title:\"snake\"}, \r\n \t { title:'shark'}, { title:\"elephant\"}, { title:\"mouse\"},\r\n \t { title:'lion'}, { title:\"gorilla\"}, { title:\"eagle\"},\r\n \t { title:'fish'}, { title:\"squirrel\"} ]\r\n });\r\n tableview.addEventListener(\"click\", function(e) {\r\n\t\talert(\"Index \" + e.index + \" \\n\" + e.rowData.title);\r\n });\r\n \r\n var scrollView = Titanium.UI.createScrollView({\r\n\t top:0,\r\n \tcontentHeight:0,\r\n\t showVerticalScrollIndicator:true\r\n\t});\r\n\t\r\n scrollView.add(tableview);\r\n win1.add(scrollView);\r\n \r\n var win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n });\r\n win2.addEventListener('focus', function(){\r\n\t\ttableview.searchHidden = true;\r\n\t\tTi.API.info(\"tableView = true\");\r\n });\r\n \r\n var tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n });\r\n \r\n var label2 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n });\r\n \r\n win2.add(label2);\r\n\r\n tabGroup.addTab(tab1); \r\n tabGroup.addTab(tab2); \r\n \r\n tabGroup.open();\r\n{code}\r\n\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://support.appcelerator.com/tickets/APP-426287", "attachment": [], "flagged": false, "summary": "iPhone: Unable to scroll TableView until click SearchBar", "creator": { "name": "mvizcaino", "key": "mvizcaino", "displayName": "Miguel Vizcaino", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mvizcaino", "key": "mvizcaino", "displayName": "Miguel Vizcaino", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 4, Mobile 1.7.0 RC1", "comment": { "comments": [ { "id": "158833", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving issue as the pull has been accepted.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T16:21:13.000+0000", "updated": "2011-07-06T16:21:13.000+0000" }, { "id": "164384", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed as expected on:\niPod 3rd Gen 4.0.2\niPad 2 4.3.2\niPhone 4 4.2.10\n\nSDK:\nversion=1.8.0\ntimestamp=08/26/11 14:53\ngithash=8e978eb...\n", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-29T12:57:03.000+0000", "updated": "2011-08-29T12:57:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }