{ "id": "76389", "key": "AC-3079", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-07-08T09:22:52.000+0000", "created": "2011-06-14T14:43:12.000+0000", "labels": [ "defect", "ios", "release-1.7.0", "release-1.7.1" ], "versions": [], "issuelinks": [], "assignee": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:48:07.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The leftNavButton \"click\" event of a window in a navGroup is not always catched.\r\nIt seems to depend if the window is entirely loaded the leftNavButton doesn't work anymore.\r\nIt's of course a regression since i installed Titanium Studio with Titanium SDK 1.7.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar baseWin = Titanium.UI.createWindow({ \r\n title: 'BASE'\r\n});\r\n\r\nvar winMenu = Titanium.UI.createWindow({\r\n\tnavBarHidden:\t\ttrue,\r\n\tbarColor: \t\t\t'#92278f',\r\n url:\t\t\t\t'menu/menu.js',\r\n titleid:\t\t\t'phone_win_menu'\r\n});\r\n\r\nvar navGroup = Titanium.UI.iPhone.createNavigationGroup({\r\n window: winMenu\r\n});\r\n\r\nwinMenu.navGroup = navGroup;\r\nbaseWin.add(navGroup);\r\nbaseWin.open({\r\n\ttransition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT\r\n});\r\n{code} \r\n\r\n{code:title=menu/menu.js|borderStyle=solid}\r\nvar winMenu = Titanium.UI.currentWindow;\r\n\t\r\nvar btnBack = Titanium.UI.createButton({\r\n\ttitle: \t\t\t\t\t\t'Back',\r\n\tcolor: \t\t\t\t\t\t'#fff',\r\n\twidth: \t\t\t\t\t\t53,\r\n\theight: \t\t\t\t\t29,\r\n\ttop:\t\t\t\t\t\t8,\r\n\tleft:\t\t\t\t\t\t8,\r\n\tzIndex:\t\t\t\t\t\t2\r\n});\r\n\r\nvar btnWindow2 = Titanium.UI.createButton({\r\n\tcolor: '#fff',\r\n\tcolor: 'Window2',\r\n\twidth: \t64,\r\n\theight:\t64,\r\n\tleft:\t70,\r\n\ttop:\t250\r\n});\r\n\r\nbtnWindow2.addEventListener('click', function () {\r\n\twindow2 = Titanium.UI.createWindow({\r\n\t\tnavBarHidden:\t\ttrue,\r\n\t\turl:\t\t\t\t\"window2.js\",\r\n\t\ttitle:\t\t\t\t\"Window2\",\r\n\t titleid:\t\t\t'phone_window2',\r\n\t\tbarColor: \t\t\t'#aa5ea3',\r\n\t\tleftNavButton:\t\tbtnBack,\r\n\t\t_parent: \t\t\twinMenu,\r\n\t\tnavGroup: \t\t\twinMenu.navGroup,\r\n rootWindow: \t\twinMenu\r\n\t});\r\n\twinMenu.navGroup.open(window2);\r\n});\r\nwinMenu.add(btnWindow2);\r\n{code} \r\n\r\n{code:title=window2.js|borderStyle=solid}\r\nvar win = Titanium.UI.currentWindow;\r\n\r\n// Ajout de l'action\r\nwin.leftNavButton.addEventListener('click', function(){\r\n\twin.hideNavBar();\r\n\twin.navGroup.close(win);\r\n});\r\n{code} ", "attachment": [], "flagged": false, "summary": "leftNavButton click event is not catched", "creator": { "name": "dghaderi", "key": "dghaderi", "displayName": "Diako Ghaderi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dghaderi", "key": "dghaderi", "displayName": "Diako Ghaderi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 1.7.0 and 1.7.1\r\nPlatform & version: iOS 4.3\r\nDevice Details: iOS simulator and physical device (iphone 3GS) \r\nHost Operating System: OSX 10.6\r\nTitanium Studio version: 1.0.1.201106171427", "comment": { "comments": [ { "id": "158580", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Diako\r\n\r\nIn order for us to progress this ticket, would you please amend the code in your ticket so that it is a [proper usecase|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases], that runs without modification? Please also be aware of [the Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AtheJiraTicketChecklist].\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-05T15:26:03.000+0000", "updated": "2011-07-05T15:26:03.000+0000" }, { "id": "158813", "author": { "name": "dghaderi", "key": "dghaderi", "displayName": "Diako Ghaderi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for your reply.\r\nI update my usecase and simplified it.\r\nI hope it will help you to fix the bug i meet with SDK 1.7.0 and 1.7.1 now.", "updateAuthor": { "name": "dghaderi", "key": "dghaderi", "displayName": "Diako Ghaderi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T14:44:52.000+0000", "updated": "2011-07-06T14:44:52.000+0000" }, { "id": "159017", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for updating the ticket, but you may well be misusing the API. Please see [window_navbar.js|https://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/window_navbar.js] for the correct approach, and try running that demo (via the Kitchensink app). I will close this for now, while you check that, and reopen if necessary. Let us know. Thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-08T09:22:37.000+0000", "updated": "2011-07-08T09:22:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }