{ "id": "61914", "key": "TIMOB-1282", "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": "11242", "name": "Release 1.6.0 M09", "archived": true, "released": true, "releaseDate": "2011-02-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:44.000+0000", "created": "2011-04-15T02:48:28.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "1.3.3", "4", "defect", "ios", "os", "picker", "release-1.6.0", "sdk" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:44.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": "{html}
A customer reported that with SDK 1.3.2, after adding a picker\nto a window, using the setSelectedRow worked and this does not work\nin 1.3.3 from HEAD.
\nI was able to reproduce this with picker_basic.js in the Kitchen\nSink. I was able to get it to work with a setTimeout of 100ms\nthough which leaves me to believe that there is a delay in\ncomponent creation and being able to use methods on a component. My\npicker_basic.js is attached and the setTimeout is at the bottom of\nthe file.
It's obviously a known bug (since June 10th) as a work around\nwas added to the end of contacts_groups.js here:
\n\nhttp://github.com/appcelerator/titanium_mobile/commit/2998e9d0dc293...
\nMaybe you could ask your developers to raise tickets when they\nfind bugs - rather than waiting for your clients to find them?
(from [958778c249da2a20f4af1f7d663a0595ad263d49])\n[#1282 state:resolved] Picker now delays row\nselection until view attached if necessary. \nhttp://github.com/appcelerator/titanium_mobile/commit/958778c249da2...
I create a view, then a picker, add the picker to the view, then\ncreate a window and add the view to the window.
\nTHEN I call Ti.Ui.currentTab.open(win, { animated: true });
\nCalling setSelectedRow BEFORE the open doesn't work, calling it\nAFTER does.
\nSo not sure this is 100% fixed - much better though - thanks
\np.s. you may want to update your contacts_groups.js example
We are currently working on some internal changes which will\nlikely go in post-1.4.0 that may be able to solve this problem. For\nnow, I recommend that you call setSelectedRow() in an event\nlistener for win.open().
Great thanks - could you open a new ticket for '1.5' to that\neffect - just so others can find out it is a know problem.
Re-opening. This can probably be fixed by Blain's changes to the\nview loading system; we'll need to look into it. Right now it looks\nlike a view can attach before a window is properly opened, a little\nmore work is necessary.
Hey guys - Worked on this for about an hour and can't really\nfind a way to get this to work when opening a Picker in a Popover.\nThe Popover and Picker are instantiated within an Event\nHandler.
Picker populates just fine, but setSelectedRow won't work. Tried\nfireEvents and timing changes. Bringing this up as Picker in\nPopover are part of the HIG.
\n\"Present a picker or date and time picker only within a\npopover.\"
\nCheers! :-)
I'm quite sure I fixed this one due to a different bug, but I'll\nhave to look after 1.5.0
Appears to be an Apple bug involving when a picker row can be\nset (it must, apparently, be attacked to the topmost level view).\nGoing to look into a workaround.
(from [2fab4fc209b2277dc41ea4fd841848523a6509c1])\n[#1282 state:fixed-in-qa] Workaround for cute\nApple bug involving animating a picker when it might maybe not be\nquite attached to a view yet! \nhttps://github.com/appcelerator/titanium_mobile/commit/2fab4fc209b2...
TESTING THIS BUG:
\nThe behavior for the Popover test on KS-iPad has changed. The\nbehavior should now be:
\nclosing using Rc1 and ipad wifi 3.2 and 3g 4.2 based on Stephens\nnotes above