{ "id": "82070", "key": "AC-2849", "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-12-28T06:58:55.000+0000", "created": "2011-10-27T20:59:18.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:47.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": "h2. Problem\r\n\r\nNested push animation can result in corrupted navigation bar\r\n\r\nh2. Logs\r\n\r\nI am getting the following message in the logs and a buggy navigation group\r\n\r\n{code:lang=none|title=console}\r\n'2011-10-27 21:41:21.575 bugtitanium[15903:207] nested push animation can result in corrupted navigation bar\r\n2011-10-27 21:41:21.945 bugtitanium[15903:207] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.\r\n2011-10-27 21:41:21.946 bugtitanium[15903:207] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.\r\n{code}\r\n\r\nh2. Test case\r\nOn the first load, everything is ok, hit 1 time reload, click on one row and click the back button\r\n\r\nDo the same and reload 2 times, you will have to hit the back button 2 times, and so on ....\r\n\r\n{code:lang=javascript}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar mytasks_helping_button = Ti.UI.createButton({\r\n title : 'Reload',\r\n top:0,\r\n color:'black',\r\n width:200,\r\n height:30,\r\n style:Ti.UI.iPhone.SystemButtonStyle.BORDERED\r\n});\r\nwin1.add(mytasks_helping_button);\r\n\r\nvar mytasks_helping_tableview = Ti.UI.createTableView({\r\n top:100\r\n});\r\nwin1.add(mytasks_helping_tableview);\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nfunction populateData(datasourcetmp,tabletmp){\r\n var data = [];\r\n for(var i = 0; i < datasourcetmp.length; i++) {\r\n var row = Ti.UI.createTableViewRow({\r\n height : 120,\r\n backgroundColor:'#fff',\r\n borderWidth : 0,\r\n borderColor : 'transparent'\r\n });\r\n \r\n var my_tasks_table_top_label = Ti.UI.createLabel({\r\n text : 'test row:'+i+' date:'+new Date(),\r\n width : \"100%\",\r\n font : {\r\n fontSize : 12,\r\n fontFamily : 'Helvetica'\r\n },\r\n color : \"black\",\r\n top : 30,\r\n height : 20,\r\n left : 5\r\n });\r\n row.add(my_tasks_table_top_label);\r\n \r\n data.push(row);\r\n }\r\n\r\nmytasks_helping_tableview.addEventListener('click', function(e) {\r\n //view a task screen\r\n var viewTask = Ti.UI.createWindow({\r\n height : \"100%\",\r\n width : \"100%\",\r\n title : \"Helping with\",\r\n barColor : 'lightGray'\r\n });\r\n\r\n var viewTask_top_label = Ti.UI.createLabel({\r\n text : 'nested view '+ e.index,\r\n width : \"80%\",\r\n font : {\r\n fontSize : 15,\r\n fontFamily : 'Helvetica'\r\n },\r\n color : \"gray\",\r\n top : 10,\r\n height : 20,\r\n left : 60\r\n });\r\n viewTask.add(viewTask_top_label);\r\n\r\n tab1.open(viewTask);\r\n });\r\n \r\n tabletmp.setData(data);\r\n}\r\n\r\nvar datasource = ['1','2','3','4','5','6','7'];\r\n populateData(datasource,mytasks_helping_tableview);\r\n\r\nmytasks_helping_button.addEventListener('click', function(e) {\r\n populateData(datasource,mytasks_helping_tableview);\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n{code}\r\n\r\n\r\nh2. Discussions\r\n\r\nQ&A: [bug-nested push animation can result in corrupted navigation bar|http://developer.appcelerator.com/question/127482/bug--nested-push-animation-can-result-in-corrupted-navigation-bar]\r\n", "attachment": [], "flagged": false, "summary": "nested push animation can result in corrupted navigation bar", "creator": { "name": "jbpringuey", "key": "jbpringuey", "displayName": "jean-baptsite pringuey", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jbpringuey", "key": "jbpringuey", "displayName": "jean-baptsite pringuey", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "mac os", "comment": { "comments": [ { "id": "170829", "author": { "name": "jbpringuey", "key": "jbpringuey", "displayName": "jean-baptsite pringuey", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved by putting the listener outside of the populate data", "updateAuthor": { "name": "jbpringuey", "key": "jbpringuey", "displayName": "jean-baptsite pringuey", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-28T18:07:42.000+0000", "updated": "2011-10-28T18:07:42.000+0000" }, { "id": "177393", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for the update - I wish I had seen your comment before restructuring the ticket. ;)\r\n\r\nPlease note the changes I made, so that you can use the format for your future tickets. Please see [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] for full details.\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-28T06:58:46.000+0000", "updated": "2011-12-28T06:58:46.000+0000" }, { "id": "177394", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "As stated by user, closing as invalid.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-28T06:58:55.000+0000", "updated": "2011-12-28T06:58:55.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }