{ "id": "140970", "key": "TIMOB-18139", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-08T20:21:26.000+0000", "created": "2014-12-04T19:23:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0", "regression" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-09T23:10:39.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": "h5.Description\r\n\r\nIf an alert is on screen when the 'red screen' is thrown on device, when the screen is dismissed the alert appears in the upper left hand corner of the screen, as shown in the screenshot 3.5.0. \r\n\r\n*This is a regression* as when using 3.4.1 and running the same code the behaviour is different. The alert is displayed on top of the 'red screen' and always stays centred, as shown in the screenshot 3.4.1\r\n\r\n*Notes*\r\n\r\nI am investigating to see if there are any other actions which cause this behaviour.\r\nThe alert can still be dismissed from it's position as the bottom can still be tapped\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#fff'); \r\nvar win = Titanium.UI.createWindow({title: 'test'}); \r\nalert('Will I move or not!!'); \r\nwin.foobar();\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Add the code above to an existing project build and run on an iOS device using 3.5.0 SDK\r\n\r\nh5.Actual Result\r\n\r\nThe alert will not be displayed on top of the 'red screen', when the 'red screen' is dismissed the alert is positioned at the top left of the screen.\r\n\r\nh5.Expected Result\r\n\r\nThe alert should be the top item in the window and should always be centred", "attachment": [ { "id": "53022", "filename": "3.4.1.PNG", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-12-04T19:28:50.000+0000", "size": 138012, "mimeType": "image/png" }, { "id": "53023", "filename": "3.5.0.PNG", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-12-04T19:28:50.000+0000", "size": 1581394, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Alert gets moved if on screen when application error thrown", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Mac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.5.0.v20141203160911, 3.6.0.v20141203164915\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPhone 6 Plus (8.1)", "comment": { "comments": [ { "id": "335441", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The behavior on iOS7 will be different from the behavior on iOS8. On iOS8 the Alert is a proper View Controller that is part of the RootViewController hierarchy. On iOS7 it is not part of the RootViewController hierarchy but rather of the Application Window. We will fix the bug regarding the centering of the alert on dismissal of the ErrorController but we will not fix the behavior discrepancy", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-08T20:16:17.000+0000", "updated": "2014-12-08T20:16:17.000+0000" }, { "id": "335442", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6453\r\n3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6454", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-08T20:16:38.000+0000", "updated": "2014-12-08T20:20:37.000+0000" }, { "id": "335730", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.5.0.v20141208122514, 3.6.0.v20141209113313\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPhone 6 Plus (8.1), iPhone 6 Simulator (8.1)\r\n\r\nRan the code in the description. The alert is no longer shown on top of the error screen and when the error screen is dismissed the alert is still centered as expected.\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-12-09T23:08:01.000+0000", "updated": "2014-12-09T23:08:01.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }