{ "id": "63692", "key": "TIMOB-3060", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-08-03T08:37:46.000+0000", "created": "2011-04-15T03:35:49.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core", "reprod" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-03T08:37:50.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": "If a modal window is opened with animated:false, it will be\r\nopened without animation but will close with animation.\r\n\r\nExample code:\r\n\r\n{code:js}\r\nvar win = Titanium.UI.createWindow({ backgroundColor:'#fff' });\r\nvar button = Ti.UI.createButton({title:'open', width:200, height:50});\r\nwin.add(button);\r\nbutton.addEventListener('click', function(){\r\n var win2 = Ti.UI.createWindow({backgroundColor:'#ccc'});\r\n var button2 = Ti.UI.createButton({title:'close', width:200, height:50});\r\n win2.add(button2);\r\n button2.addEventListener('click', function(){\r\n win2.close();\r\n //win2.close({animted:false});\r\n });\r\n win2.open({modal:true, animated:false});\r\n});\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Modal Window Animated False", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1058, "state": "closed", "name": "2018 Sprint 16 SDK", "startDate": "2018-07-29T22:26:06.486Z", "endDate": "2018-08-12T22:26:00.000Z", "completeDate": "2018-08-13T17:38:16.757Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "195099", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Jira bug review - still reproducible with latest 2.1 CI", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-16T16:06:06.000+0000", "updated": "2012-05-16T16:06:06.000+0000" }, { "id": "217031", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on the iOS simulator using TiSDK 2.2.0v20120830102513, issue still valid. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-30T11:43:45.000+0000", "updated": "2012-08-30T11:43:45.000+0000" }, { "id": "235638", "author": { "name": "sabmark", "key": "sabmark", "displayName": "Mark Anthony Sabandal", "active": true, "timeZone": "Europe/Berlin" }, "body": "still valid from sdk 3.0.0ga", "updateAuthor": { "name": "sabmark", "key": "sabmark", "displayName": "Mark Anthony Sabandal", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-23T23:40:28.000+0000", "updated": "2013-01-23T23:40:28.000+0000" }, { "id": "250291", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-06T11:32:41.000+0000", "updated": "2013-05-06T11:32:41.000+0000" }, { "id": "420368", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can still reproduce this with the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.9.0.201705021158\r\nTi SDK 6.1.0.v20170519131839\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-24T20:09:15.000+0000", "updated": "2017-05-24T20:09:15.000+0000" }, { "id": "439773", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The bug is not valid, because the code was not valid. Developers should use the {{NavigationWindow}} to open modal windows since 3.x and pass {{animated: false}} to the close-call to disable it, since animations are natively enabled by default on iOS. Working code:\r\n{code:js}\r\nvar win = Titanium.UI.createWindow({ backgroundColor:'#fff' });\r\nvar button = Ti.UI.createButton({title:'open', width:200, height:50});\r\nwin.add(button);\r\nbutton.addEventListener('click', function(){\r\n var win2 = Ti.UI.createWindow({backgroundColor:'#ccc'});\r\n var nav = Ti.UI.iOS.createNavigationWindow({ window: win2 });\r\n var button2 = Ti.UI.createButton({title:'close', width:200, height:50});\r\n\r\n win2.add(button2);\r\n button2.addEventListener('click', function(){\r\n nav.close({ animated: false });\r\n });\r\n nav.open({modal:true, animated:false});\r\n});\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-03T08:37:46.000+0000", "updated": "2018-08-03T08:37:46.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }