{ "id": "89315", "key": "TIMOB-8470", "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": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-24T08:28:12.000+0000", "created": "2012-03-31T20:18:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_picker", "qe-testadded" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "16263", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "87221", "key": "TIMOB-8469", "fields": { "summary": "Android: Picker in scrollableView not working", "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-12T15:17:54.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Issue\r\nPicker in scrollView not working.\r\n\r\nh6.Tested on\r\nAndroid Emulator 2.2\r\nDroid Razr 2.3.5\r\n\r\nh6.Runtime Engines\r\nRhino / V8\r\n\r\nh6.Steps to reproduce\r\n1. Run code below\r\n2. Click the picker \r\n\r\nh6.Expected behavior\r\nSee fully operational Pickers whose options render on screen\r\n\r\nh6.Repro sequence\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar win5 = Titanium.UI.createScrollView({\r\n contentHeight:'auto',\r\n left:15,\r\n right:5\r\n ,layout:'vertical'\r\n});\r\n \r\n \r\nvar names = ['Joanie', 'Mickey', 'Jean-Pierre', 'Gustav', 'Raul', 'Mimi', 'Emily', 'Sandra', 'Carrie', 'Chachi'];\r\nvar verbs = ['loves', 'likes', 'visits', 'loathes', 'waves to', 'babysits', 'accompanies', 'teaches', 'announces', 'supports', 'knows', 'high-fives'];\r\n \r\nvar rows1 = [];\r\nfor (var i = 0; i < names.length; i++) {\r\n rows1.push(Ti.UI.createPickerRow({title: names[i]}));\r\n}\r\n \r\nvar rows2 = [];\r\nfor (i = 0; i < verbs.length; i++) {\r\n rows2.push(Ti.UI.createPickerRow({title: verbs[i]}));\r\n}\r\n \r\nvar rows3 = [];\r\nfor (i = (names.length -1); i >=0; i--) {\r\n rows3.push(Ti.UI.createPickerRow({title: names[i]}));\r\n}\r\n \r\nvar column1 = Ti.UI.createPickerColumn( {\r\n rows: rows1, font: {fontSize: \"12\"}\r\n});\r\nvar column2 = Ti.UI.createPickerColumn( {\r\n rows: rows2, font: {fontSize: \"12\"}\r\n});\r\nvar column3 = Ti.UI.createPickerColumn( {\r\n rows: rows3, font: {fontSize: \"12\"}\r\n});\r\n \r\nvar picker = Ti.UI.createPicker({\r\n useSpinner: true, visibleItems: 7,\r\n type : Ti.UI.PICKER_TYPE_PLAIN,\r\n top: 20, height: '200',\r\n columns: [ column1, column2, column3 ]\r\n});\r\n \r\npicker.addEventListener('change', function(e) {\r\n Ti.API.info(e.selectedValue[0] + \" \" + e.selectedValue[1] + \" \" + e.selectedValue[2]);\r\n});\r\n \r\nwin5.add(picker);\r\nwin1.add(win5);\r\n \r\nwin1.open();\r\n{code} ", "attachment": [], "flagged": false, "summary": "Android: Picker in scrollView not working", "creator": { "name": "thebrousse", "key": "thebrousse", "displayName": "Christian Brousseau", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "thebrousse", "key": "thebrousse", "displayName": "Christian Brousseau", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK: Mobile 1.8.2, 2.0\r\nPlatform OS: Android 2.2, 2.3.4, 2.3.5", "comment": { "comments": [ { "id": "190229", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Still not working in 2.0.0.GA. Drop the following into a standard new project. Picker shows up, but clicking does not display its options dialog box. The spinner style picker works fine.\r\n\r\n{code}\r\nvar sv = Ti.UI.createScrollableView();\r\nvar v1 = Ti.UI.createView({\r\n\tbackgroundColor: 'red'\r\n});\r\nvar v2 = Ti.UI.createView({\r\n\tbackgroundColor: 'blue'\r\n});\r\nvar v3 = Ti.UI.createView({\r\n\tbackgroundColor: 'green'\r\n});\r\n\r\n\r\nvar picker = Ti.UI.createPicker();\r\n\r\nvar data = [];\r\ndata[0]=Ti.UI.createPickerRow({title:'Bananas',custom_item:'b'});\r\ndata[1]=Ti.UI.createPickerRow({title:'Strawberries',custom_item:'s'});\r\ndata[2]=Ti.UI.createPickerRow({title:'Mangos',custom_item:'m'});\r\ndata[3]=Ti.UI.createPickerRow({title:'Grapes',custom_item:'g'});\r\n\r\n// turn on the selection indicator (off by default)\r\npicker.selectionIndicator = true;\r\npicker.add(data)\r\nv1.add(picker)\r\nsv.views = [v1, v2, v3]\r\nwin1.add(sv)\r\n{code}", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-06T17:20:30.000+0000", "updated": "2012-04-06T17:20:30.000+0000" }, { "id": "191963", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A PR with the workaround - increase scrollview sensitivity, is pending. The issue is that we're not getting touch events in certain area of the picker when it is put inside the scrollview. This could be a deep layout bug or a bug in WheelView's implementation. A deeper analysis will be looked at later. ", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-19T17:19:46.000+0000", "updated": "2012-04-19T17:19:46.000+0000" }, { "id": "192358", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by PR 2043", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-24T08:28:12.000+0000", "updated": "2012-04-24T08:28:12.000+0000" }, { "id": "199927", "author": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Picker in scrollView is working.\r\nVerified on\r\nTitanium Studio, build: 2.2.0.201206222035\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice:Xoom(4.0.3)", "updateAuthor": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T14:29:55.000+0000", "updated": "2012-06-23T14:29:55.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }