{ "id": "124379", "key": "AC-2455", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2014-01-24T06:47:11.000+0000", "created": "2014-01-04T13:41:11.000+0000", "labels": [ "dev-investigate" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:30.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": [], "description": "h3. Steps to Reproduce\r\n\r\nThis is not an alloy project!\r\n\r\n# create a tab group with 2 or 3 tabs,\r\n# those tabs are from seperate .js files\r\n# add this click event listner to the textfield\r\n\r\n{code}\r\n textField.addEventListener('click', function(e) {\r\n var pickerLabel = Ti.UI.createLabel({\r\n text : e.source.columnName\r\n });\r\n var cancel = Titanium.UI.createButton({\r\n title : 'Cancel',\r\n style : Titanium.UI.iPhone.SystemButtonStyle.BORDERED\r\n });\r\n var done1 = Titanium.UI.createButton({\r\n title : 'Done',\r\n style : Titanium.UI.iPhone.SystemButtonStyle.DONE\r\n });\r\n var spacer = Titanium.UI.createButton({\r\n systemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n });\r\n var toolbar1 = Titanium.UI.iOS.createToolbar({\r\n bottom : 210,\r\n items : [cancel, spacer, pickerLabel, spacer, done1]\r\n });\r\n var timeInField = e.source.value; \r\n var arrayOfTime = e.source.value.split(':',3);\r\n var tvalue = new Date();\r\n tvalue.setHours(arrayOfTime[0]);\r\n tvalue.setMinutes(arrayOfTime[1]);\r\n tvalue.setSeconds(arrayOfTime[2]);\r\n var picker = Ti.UI.createPicker({\r\n type : Ti.UI.PICKER_TYPE_TIME,\r\n //useSpinner for Android Only\r\n useSpinner : true,\r\n value : timeInField === '00:00:00' ? new Date() : tvalue, \r\n selectionIndicator : true,\r\n bottom : 0,\r\n });\r\n cancel.addEventListener('click', function(e) {\r\n textField.setValue(timeInField);\r\n picker.hide();\r\n toolbar1.hide();\r\n });\r\n picker.addEventListener('change', function() {\r\n var d = new Date(picker.getValue());\r\n hour = d.getHours();\r\n min = d.getMinutes();\r\n milli = d.getMilliseconds().toString();\r\n millid = milli.length >1 ? milli.substring(0, milli.length-1) : milli;\r\n textField.setValue(hour+':'+min+':'+millid);\r\n });\r\n done1.addEventListener('click', function(e) {\r\n var d = new Date(picker.getValue());\r\n hour = d.getHours();\r\n min = d.getMinutes();\r\n milli = d.getMilliseconds().toString();\r\n millid = milli.length >1 ? milli.substring(0, milli.length-1) : milli;\r\n textField.setValue(hour+':'+min+':'+millid);\r\n picker.hide();\r\n toolbar1.hide();\r\n });\r\n alert('Clicked on time field');\r\n Ti.API.info('Adding: picker to window' );\r\n self.add(picker);\r\n self.add(toolbar1);\r\n Ti.API.info('Picker should be shown' );\r\n }); \r\n{code}\r\n\r\nh3. Actual Result\r\nOn iOS simulator and device the click listener is fired but the picker never shows\r\n\r\nThis is now the 3rd thing that has broken since upgrading to 3.2.0 and apart from completley uninstalling titanium, \r\nand hoping to find an earlier release I cannot revert back, which has made the whole project worthless\r\nsorry but I'm extremley un happy that this is not the 2nd thing that should work, as it has not been deprecated, that is broken\r\n\r\nh3. Expected Result\r\nthe picker should show", "attachment": [ { "id": "44932", "filename": ".log", "author": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "created": "2014-01-04T13:41:29.000+0000", "size": 9256095, "mimeType": "text/plain" }, { "id": "44933", "filename": "diagnostic7350739934495048750.log", "author": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "created": "2014-01-04T13:41:33.000+0000", "size": 14955, "mimeType": "text/plain" }, { "id": "45058", "filename": "testNavBar.zip", "author": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "created": "2014-01-12T11:56:12.000+0000", "size": 3707169, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Date/Time Picker will not show when the picker is attached to a window that is part of a tab group", "creator": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium Studio 3.2.0", "comment": { "comments": [ { "id": "286679", "author": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "body": "Hi I've been doing some more digging and found that this isn't related to a tabgroup.\nI am unsure if this is by design or a bug but if the main window has layout:'vertical' set then the pickers never show\nand from what i can tell this isn't related to the SDK version ", "updateAuthor": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "created": "2014-01-05T15:25:19.000+0000", "updated": "2014-01-05T15:25:19.000+0000" }, { "id": "286803", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Apologies for your issues. Why can't you use 3.1.3? You only need to upgrade to 3.2.0 completely if you are using Alloy.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T19:29:27.000+0000", "updated": "2014-01-06T19:29:27.000+0000" }, { "id": "286808", "author": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "created": "2014-01-06T19:56:06.000+0000", "updated": "2014-01-06T19:56:06.000+0000" }, { "id": "286899", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~tempest] I am glad that you are back on track with your project now. Would you like this ticket to be resolved or track a particular issue here? It is a little confusing with different issues mentioned in this ticket.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T06:21:15.000+0000", "updated": "2014-01-07T06:21:15.000+0000" }, { "id": "287013", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~tempest] Could you provide us with a full test case, as that would help narrow down issue quickly. This could be a multi-context issue. But without knowing where or which context this textfield is being attached to, we won't be able to narrow it down. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T18:49:14.000+0000", "updated": "2014-01-07T18:49:44.000+0000" }, { "id": "287853", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~tempest] We wanted to follow up on this ticket and see if you can provide a test case to reproduce this issue. We have not been able to reproduce this issue in-house.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-12T04:21:25.000+0000", "updated": "2014-01-12T04:21:25.000+0000" }, { "id": "287885", "author": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "body": "Test Project for this issue and another I have", "updateAuthor": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "created": "2014-01-12T11:56:12.000+0000", "updated": "2014-01-12T11:56:12.000+0000" }, { "id": "287887", "author": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "body": "Hi Ritu I've had some issues with rlf work, unfortunately I don't do this as a day job, I have created a test case now, that includes another issue i was having, anyway the 2nd page and 3rd page shows the two differences when running the same code, but with one window layout set to vertical and the other not\n\nThanks", "updateAuthor": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "created": "2014-01-12T11:58:43.000+0000", "updated": "2014-01-12T11:58:43.000+0000" }, { "id": "288813", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "I tested this issue with slightly modified code. It’s working as expected for me. Please check my test code and let me know if you have any problem. \r\n\r\nh5. Test Environment\r\nMac OX S 10.8.5\r\nTi SDK 3.2.0.GA\r\nTi CLI 3.2.0\r\nIOS Simulator 7.0.3\r\n\r\nh5. Test Code \r\n\r\nlink: https://github.com/csemrm/testNavBar\r\n\r\nh5. Test to step \r\nAs per reporter description\r\n\r\nh5. Test result \r\nNot SDK bug\r\n\r\nThanks\r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T09:57:31.000+0000", "updated": "2014-01-20T20:35:13.000+0000" }, { "id": "289271", "author": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "body": "Hi, impelemented the same changes in our main app, and works as expected, didn't think of doing it that way, strange it worked before before 3.2.0 though, at least it works :-) \nThanks Steve", "updateAuthor": { "name": "tempest", "key": "tempest", "displayName": "Steve O'Neill", "active": true, "timeZone": "Europe/London" }, "created": "2014-01-22T19:37:59.000+0000", "updated": "2014-01-22T19:37:59.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }