{ "id": "65962", "key": "TIMOB-4551", "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": "12094", "description": "", "name": "Sprint 2012-02", "archived": true, "released": true, "releaseDate": "2012-01-29" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-20T16:21:51.000+0000", "created": "2011-06-01T13:20:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "regression" ], "versions": [ { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-23T09:26:59.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": "Open a new window with an transition, then close this opened window to return on first window. The first window will show a black screen.\r\n\r\nThis work correctly in 1.5.2 and 1.6.2\r\n\r\nsample code for reproduce:\r\n\r\n{code:javascript}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\nvar btn1 = Ti.UI.createButton({\r\n title: 'Goto 2 - without animation (no error)',\r\n width:300,\r\n height:100,\r\n top:100\r\n});\r\nvar btn2 = Ti.UI.createButton({\r\n title: 'Goto 2 - with animation (with error)',\r\n width:300,\r\n height:100,\r\n top:220\r\n});\r\n\r\nbtn1.addEventListener('click', function(e){\r\n var win2 = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n });\r\n win2.open();\r\n\r\n var btn3 = Ti.UI.createButton({\r\n title: 'Go back',\r\n width:300,\r\n height:100\r\n });\r\n\r\n btn3.addEventListener('click', function(e){\r\n win2.close();\r\n });\r\n\r\n win2.add(btn3);\r\n});\r\n\r\nbtn2.addEventListener('click', function(e){\r\n var win2 = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n });\r\n win2.open({transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT});\r\n\r\n var btn3 = Ti.UI.createButton({\r\n title: 'Go back',\r\n width:300,\r\n height:100\r\n });\r\n\r\n btn3.addEventListener('click', function(e){\r\n win2.close();\r\n });\r\n\r\n win2.add(btn3);\r\n});\r\n\r\nwin1.add(btn1);\r\nwin1.add(btn2);\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: window.open with transition on 1.7.0/1.8.0", "creator": { "name": "adriano", "key": "adriano", "displayName": "Adriano Paladini", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "adriano", "key": "adriano", "displayName": "Adriano Paladini", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MobileSDK 1.7.1 (r84a68cc4) and 1.8.0 (r5e090004)\r\niOS 4.2 and 4.3\r\nTitanium Studio 1.0 (build: 1.0.0.201106101247 Build date: 10 June 2011, 12:49:36) and Titanium Developer 1.2.2", "comment": { "comments": [ { "id": "156588", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "In order to progress this ticket, please provide the following information:\r\n\r\n* Titanium SDK version + build date + build hash\r\n* iOS version\r\n\r\nNote that environment information should be entered to the environment field.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T08:55:27.000+0000", "updated": "2011-06-13T08:55:27.000+0000" }, { "id": "156606", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Further to this, your code does not work. Please correct, and I will take another look. Thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T10:55:00.000+0000", "updated": "2011-06-13T10:55:00.000+0000" }, { "id": "156713", "author": { "name": "adriano", "key": "adriano", "displayName": "Adriano Paladini", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul,\r\n I tested today with last version of 1.7.1 and 1.8.0 again from http://builds.appcelerator.com.s3.amazonaws.com/index.html\r\n\r\n This error persists, and the code provide work. create a new project and paste this code on app.js.\r\n\r\n", "updateAuthor": { "name": "adriano", "key": "adriano", "displayName": "Adriano Paladini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-14T08:14:41.000+0000", "updated": "2011-06-14T08:14:41.000+0000" }, { "id": "158439", "author": { "name": "kaybie", "key": "kaybie", "displayName": "Kieran Black", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I also noted this error on upgrading to 1.7.0.RC1\r\n\r\nhttps://gist.github.com/1062247", "updateAuthor": { "name": "kaybie", "key": "kaybie", "displayName": "Kieran Black", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-03T07:01:46.000+0000", "updated": "2011-07-03T07:01:46.000+0000" }, { "id": "158481", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Adriano\r\n\r\nYour code was not a proper usecase - it did not run successfully, not least because it was missing the win2 creation code.\r\n\r\nPlease see Kieran's usecase, which is a very good example.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-05T09:05:03.000+0000", "updated": "2011-07-05T09:05:03.000+0000" }, { "id": "173938", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Should be postponed until after freeze. This bug requires extensive fixes to how we manage views on the root controller when animating windows in/out and could introduce regressions in the fix.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-23T15:51:51.000+0000", "updated": "2011-11-23T15:51:51.000+0000" }, { "id": "174232", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Likely a duplicate of another bug that I worked on recently; will be linked in additional triage.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-29T15:53:24.000+0000", "updated": "2011-11-29T15:53:24.000+0000" }, { "id": "177664", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-validated, 1.9.0.46d2d6f.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-29T17:52:30.000+0000", "updated": "2011-12-29T17:52:30.000+0000" }, { "id": "179987", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated reproduction sample code:\r\n\r\n{code}\r\n// --- Win1 ---\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor:'red'\r\n});\r\nvar btn1 = Ti.UI.createButton({\r\n title:'Open win2',\r\n height:40,\r\n width:100\r\n})\r\nbtn1.addEventListener('click', function(){\r\n win2.open({\r\n transition : Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT\r\n });\r\n});\r\nwin1.add(btn1);\r\n\r\n// --- Win2 ---\r\nvar win2 = Ti.UI.createWindow({\r\n backgroundColor:'#369'\r\n});\r\nvar btn2 = Ti.UI.createButton({\r\n title:'Close win2',\r\n top:100,\r\n height:40,\r\n width:100 \r\n})\r\nbtn2.addEventListener('click', function(){\r\n win2.close({\r\n \ttransition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT\r\n });\r\n});\r\nwin2.add(btn2);\r\n\r\nvar btn3 = Ti.UI.createButton({\r\n\ttitle:'Open win3',\r\n\ttop:160,\r\n\theight:40,\r\n\twidth:100\r\n});\r\nbtn3.addEventListener('click', function(){\r\n\twin3.open({\r\n\t\ttransition: Ti.UI.iPhone.AnimationStyle.CURL_UP,\r\n\t});\r\n});\r\nwin2.add(btn3);\r\n\r\n// --- Win3 ---\r\nwin3 = Ti.UI.createWindow({\r\n\tbackgroundColor:'green'\r\n});\r\nvar btn4 = Ti.UI.createButton({\r\n\ttitle:'Close win3',\r\n\theight:40,\r\n\twidth:100\r\n});\r\nbtn4.addEventListener('click', function() {\r\n\twin3.close({\r\n\t\ttransition: Ti.UI.iPhone.AnimationStyle.CURL_DOWN,\r\n\t});\r\n});\r\nwin3.add(btn4);\r\n\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-19T17:38:28.000+0000", "updated": "2012-01-19T17:38:28.000+0000" }, { "id": "180170", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120121223134\r\nTitanium Studio, build: 1.0.8.201201210622\r\nXcode: 4.2\r\nOS: Mac OS X Lion (10.7.2)\r\nDevice: iPhone 4S Verizon (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T09:26:10.000+0000", "updated": "2012-01-23T09:26:10.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }