{ "id": "102986", "key": "AC-2204", "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": "2012-10-10T14:34:08.000+0000", "created": "2012-10-09T21:17:36.000+0000", "labels": [ "animation", "ios", "ios6", "maps", "mapview", "tableView" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:11.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": "*Steps to reproduce*\r\n\r\n# Create an app with a TabGroup.\r\n# Add tabs.\r\n# In one of the tabs, add 2 view, one containing an Map and the other containing a TableView and other view (I've tested with a regular view and with a Toolbar).\r\n# Create code to animate between the 2 views using Window.animate() with either CURL_UP, CURL_DOWN, FLIP_FROM_LEFT or FLIP_FROM_RIGHT.\r\n# Create a button and the proper function to toggle between the 2 views on the container.\r\n\r\n\r\n*Expected*\r\n\r\nThe views should toggle inside the container (between the Navbar and the TabGroup) normally.\r\n\r\n\r\n*What happens*\r\n\r\nThe views toggle normally with the effects, but when you return to the view containing the TableView, only the TableView is rendered, the other views disappear.\r\n\r\n\r\n\r\n*Environment*\r\n\r\n* Ti Mobile SDK 2.1.3.GA\r\n* iOS SDK 6 - XCode 4.5 Latest\r\n* Happens both on the Simulator and on iPhone 4S running iOS6 (haven't tested on other devices)\r\n\r\n\r\n*Test Case*\r\n\r\nIt is coded using CommonJS so you need to require it on your app.js and add it to your tabbar directly (it returns a tab with the window):\r\n\r\n\r\n*bug.js:*\r\n\r\n{code:javascript}\r\nWindow = function() {\r\n\r\n\tvar _title = \"Test\";\r\n\r\n\tvar w = Ti.UI.createWindow({\r\n\t\ttitle: _title\r\n\t});\r\n\t\r\n\tvar annotations = [];\r\n\t\r\n\tvar m = Ti.Map.createView({\r\n\t\tmaptype: Ti.Map.STANDARD_TYPE,\r\n\t\tregion: {latitude:-23.584038, longitude:-46.679044, latitudeDelta:0.05, longitudeDelta:0.05},\r\n\t\tanimate:true,\r\n\t\tregionFit:true,\r\n\t\tuserLocation: true,\r\n\t\tannotations: annotations\r\n\t});\r\n\t\r\n\tw.add(m);\r\n\t\r\n var fbar = Ti.UI.createView({\r\n top:0,\r\n\t\theight: 42,\r\n\t\twidth: 320,\r\n\t\tbackgroundColor: \"#333\",\r\n\t\tzIndex: 1\r\n });\r\n \r\n w.add(fbar);\r\n\t\r\n\t\r\n\tvar t = Ti.UI.createTableView({\r\n\t\tdata: [\r\n\t\t\t{title: \"Test 1\"},\r\n\t\t\t{title: \"Test 2\"},\r\n\t\t\t{title: \"Test 3\"},\r\n\t\t\t{title: \"Test 4\"},\r\n\t\t\t{title: \"Test 5\"},\r\n\t\t\t{title: \"Test 6\"},\r\n\t\t\t{title: \"Test 7\"},\r\n\t\t\t{title: \"Test 8\"},\r\n\t\t\t{title: \"Test 9\"},\r\n\t\t\t{title: \"Test 10\"},\r\n\t\t\t{title: \"Test 11\"},\r\n\t\t\t{title: \"Test 12\"},\r\n\t\t\t{title: \"Test 13\"},\r\n\t\t\t{title: \"Test 14\"},\r\n\t\t\t{title: \"Test 15\"}\r\n\t\t],\r\n\t\ttop: 42\r\n\t});\r\n\r\n\tw.add(t);\r\n\t\r\n\tvar state = \"l\";\r\n\t\r\n\tvar tbtn = Ti.UI.createButton({\r\n\t\timage: \"img/icons/map.png\",\r\n\t\theight: 40,\r\n\t\twidth: 40\r\n\t}, function(){\r\n\t\tif(state == \"l\") {\r\n\t\t\tstate=\"m\";\r\n\t\t\tw.animate({view:m, transition:Ti.UI.iPhone.AnimationStyle.CURL_UP});\r\n\t\t\ttbtn.setImage(\"img/icons/list.png\");\r\n\t\t\t\r\n\t\t} else{\r\n\t\t\tstate=\"l\";\r\n\t\t\tw.animate({view:t, transition:Ti.UI.iPhone.AnimationStyle.CURL_DOWN});\r\n\t\t\ttbtn.setImage(\"img/icons/map.png\");\r\n\t\t}\r\n\t});\r\n\t\r\n\tw.setLeftNavButton(tbtn);\r\n\r\n\treturn Ti.UI.createTab({\r\n\t\twindow: w,\r\n\t\ticon: \"img/icons/test.png\",\r\n\t\ttitle: _title\r\n\t});\r\n}\r\n\r\nmodule.exports = Window;\r\n{code}\r\n\r\n\r\nHow to add it to your app.js:\r\n\r\n\r\n*app.js:*\r\n\r\n{code:javascript}\r\nTi.UI.setBackgroundColor('#fff');\r\n\r\n(function() {\r\n\r\n\tvar Test = {};\r\n\tapp = Ti.UI.createTabGroup({\r\n\t\tbarColor: \"#0085c9\"\r\n\t});\r\n\r\n\tTi.UI.currentTabGroup = app;\r\n\r\n\tTest.bug = require(\"bug\")();\r\n\tTest.bug2 = require(\"othertabwithwindow\")();\r\n\tTest.bug3 = require(\"othertabwithwindow2\")();\r\n\r\n\tapp.addTab(Test.bug);\r\n\tapp.addTab(Test.bug2);\r\n\tapp.addTab(Test.bug3);\r\n\t\r\n\t\r\n\tapp.open();\r\n\r\n})();\r\n{code}\r\n\r\n\r\nTell me if you need anything else or if you need more explanations about the test case.", "attachment": [], "flagged": false, "summary": "When using Ti.UI.Window.animate on a view inside a tab that contains a TableView, animating it to a view with a map and toggling back to the previous view causes all other views to not appear anymore.", "creator": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "ios, ios6, Titanium Mobile SDK 2.1.3.GA", "comment": { "comments": [ { "id": "222779", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Please cancel this bug request... Just found out that I was dumb and transitioned just the TableView (and not the other views). Please delete it or flag as Dumb Reporter.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-10-09T21:25:59.000+0000", "updated": "2012-10-09T21:25:59.000+0000" }, { "id": "222904", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "User reported this was actually a mistake in their code.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T14:34:08.000+0000", "updated": "2012-10-10T14:34:08.000+0000" }, { "id": "280981", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Invalid issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:18:30.000+0000", "updated": "2013-11-24T22:18:30.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }