{ "id": "87221", "key": "TIMOB-8469", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-04-01T11:40:49.000+0000", "created": "2012-03-01T10:22:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "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" }, "outwardIssue": { "id": "89315", "key": "TIMOB-8470", "fields": { "summary": "Android: Picker in scrollView 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": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-01T12:28:33.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 scrollableView 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\nvar self = Ti.UI.createWindow({\r\n\tfullscreen : true\r\n});\r\nvar vw = Ti.UI.createView({\r\n\twidth : '100%',\r\n\theight : '100%'\r\n});\r\nvar picker = Ti.UI.createPicker({\r\n});\r\n\r\nfor(var i = 0; i <= 10; i++) {\r\n\tpicker.add(Ti.UI.createPickerRow({\r\n\t\ttitle : 'Item ' + i\r\n\t}));\r\n}\r\n\r\nvw.add(picker);\r\n\r\nvar views = [];\r\nviews.push(vw);\r\n\r\nvar scroll = Ti.UI.createScrollableView({\r\n\twidth : '100%',\r\n\theight : '100%',\r\n\tviews : views\r\n});\r\n\r\nself.add(scroll);//it won't work with this\r\n//self.add(vw);//uncomment this to get it working on a view\r\n\r\nself.open();\r\n{code} ", "attachment": [], "flagged": false, "summary": "Android: Picker in scrollableView 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": "185482", "author": { "name": "hini", "key": "hini", "displayName": "Hani Hamadeh", "active": true, "timeZone": "Asia/Beirut" }, "body": "same problem with ScrollView\r\n\r\n{code:title=app.js|borderStyle=solid}\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} ", "updateAuthor": { "name": "hini", "key": "hini", "displayName": "Hani Hamadeh", "active": true, "timeZone": "Asia/Beirut" }, "created": "2012-03-08T02:45:59.000+0000", "updated": "2012-03-08T02:45:59.000+0000" }, { "id": "185483", "author": { "name": "hini", "key": "hini", "displayName": "Hani Hamadeh", "active": true, "timeZone": "Asia/Beirut" }, "body": "problem: the picker does not function.", "updateAuthor": { "name": "hini", "key": "hini", "displayName": "Hani Hamadeh", "active": true, "timeZone": "Asia/Beirut" }, "created": "2012-03-08T02:47:35.000+0000", "updated": "2012-03-08T02:47:35.000+0000" }, { "id": "189404", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hani Hamadeh\r\n\r\nThe Picker in scrollView not working is filed here: TIMOB-8470\r\n\r\nNext time please create a separate Jira ticket, thanks.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-31T20:22:57.000+0000", "updated": "2012-03-31T20:22:57.000+0000" }, { "id": "189419", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of timob-8470", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-01T11:40:49.000+0000", "updated": "2012-04-01T11:40:49.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }