{ "id": "62333", "key": "TIMOB-1701", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-05-17T14:18:26.000+0000", "created": "2011-04-15T02:59:53.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "updated": "2011-05-17T14:18:26.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": "{html}

In the android_native_refactor branch, picker is not responding\nto touch events. Code to repro:

\n

(link removed)

\n
\n(function() {\n     var suites = ['login', 'test 1', 'test 2', 'test 3'];\n\n     var testWindow = Ti.UI.createWindow({\n             exitOnClose: true,\n             backgroundColor: '#0000FF'\n     });\n\n     var suitePicker = Ti.UI.createPicker({\n             left: 0,\n             right: 0,\n             top: 30\n     });\n     suitePicker.add(suites.map(function(suite) {\n             return Ti.UI.createPickerRow({title: suite});\n     }));\n     \n     testWindow.add(suitePicker);\n\n     testWindow.open();\n})();\n
\n

addendum - you can use the trackball to select and open the\npicker

{html}", "attachment": [], "flagged": false, "summary": "Picker not responding to touch events", "creator": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "126393", "author": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Our array prototype has:

\n
\nArray.prototype.map = function(f) {\n  var output = [];\n  for (var i=0; i<this.length; i++) {\n      output.push(f(this[i]));\n  }\n  return output;\n};\n
{html}", "updateAuthor": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:54.000+0000", "updated": "2011-04-15T02:59:54.000+0000" }, { "id": "126394", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

You're saying that when you tap on the picker, it doesn't show\nits dropdown? It's working fine for me both in the emulator and on\nmy HTC Desire.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:59:54.000+0000", "updated": "2011-04-15T02:59:54.000+0000" }, { "id": "126395", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

BTW, this was my complete test. All of this was in app.js:

\n
\n\nTitanium.UI.setBackgroundColor('#000');\nArray.prototype.map = function(f) {\n  var output = [];\n  for (var i=0; i<this.length; i++) {\n      output.push(f(this[i]));\n  }\n  return output;\n};\n(function() {\n     var suites = ['login', 'test 1', 'test 2', 'test 3'];\n\n     var testWindow = Ti.UI.createWindow({\n             exitOnClose: true,\n             backgroundColor: '#0000FF'\n     });\n\n     var suitePicker = Ti.UI.createPicker({\n             left: 0,\n             right: 0,\n             top: 30\n     });\n     suitePicker.add(suites.map(function(suite) {\n             return Ti.UI.createPickerRow({title: suite});\n     }));\n\n     testWindow.add(suitePicker);\n\n     testWindow.open();\n})();\n
{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:59:55.000+0000", "updated": "2011-04-15T02:59:55.000+0000" }, { "id": "126396", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Using Bills code, I saw the correct behavior (using trackball\nand touch) on a nexus 1 (2.2) and a g1 (1.6) I was I was able to\ninvoke the picker and select an item.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:55.000+0000", "updated": "2011-04-15T02:59:55.000+0000" }, { "id": "126397", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Kevin,
\nThomas and I apparently got this working fine. Do you want to close\nas Invalid? (It's an oldie).

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:59:56.000+0000", "updated": "2011-04-15T02:59:56.000+0000" }, { "id": "126398", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

ping kevin.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:59:56.000+0000", "updated": "2011-04-15T02:59:56.000+0000" }, { "id": "133828", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could not reproduce with 1.7.0RC1. Closing.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-17T14:18:26.000+0000", "updated": "2011-05-17T14:18:26.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }