{ "id": "92659", "key": "TIMOB-9338", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-06-06T17:12:00.000+0000", "created": "2012-06-01T08:58:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:43.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\nWhen creating a Picker inside a ScrollView in iOS 4.3, the picker does not scroll, but the ScrollView does instead. The same code works with iOS 5+\r\n\r\nh2. Steps to reproduce\r\n\r\n1. create an app with the code below\r\n2. run the app with iOS 4.3\r\n2. scroll the picker\r\n3. the picker does not scroll, but the scrollview does, instead\r\n\r\n{code}\r\n\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n contentWidth: 'auto',\r\n contentHeight: 'auto',\r\n showVerticalScrollIndicator: true,\r\n showHorizontalScrollIndicator: true\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor:'#336699',\r\n height: 2000,\r\n width: 250\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n top: 0\r\n});\r\n\r\nvar data = [];\r\ndata[0]=Ti.UI.createPickerRow({title:'Bananas'});\r\ndata[1]=Ti.UI.createPickerRow({title:'Strawberries'});\r\ndata[2]=Ti.UI.createPickerRow({title:'Mangos'});\r\ndata[3]=Ti.UI.createPickerRow({title:'Grapes'});\r\n\r\npicker.add(data);\r\npicker.selectionIndicator = true;\r\n\r\nview.add(picker);\r\nscrollView.add(view);\r\n\r\nwin.add(scrollView);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh2. Expected result\r\nPicker should work and the view should not scroll\r\n\r\nh2. Additional notes\r\nCustomer ticket: http://support-admin.appcelerator.com/display/17325", "attachment": [], "flagged": false, "summary": "iOS: Picker inside ScrollView is not working in iOS 4.3", "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": "iOS 4.3\r\nTiSDK 1.8.2, 2.0, 2.1", "comment": { "comments": [ { "id": "197601", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is not a bug in Titanium, this is the cause of placing two scrolling components together. The reason it works differently is due to the iOS version and how the framework works internally.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T17:12:00.000+0000", "updated": "2012-06-06T17:12:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }