{ "id": "119308", "key": "TIMOB-15008", "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": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-03T17:55:22.000+0000", "created": "2013-08-30T12:12:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_orientation", "qe-closed-3.1.3", "qe-testadded", "supportTeam" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "40903", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "136237", "key": "TIMOB-17648", "fields": { "summary": "iOS8: iPad Alert dialog does not consider window orientation modes", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-09-08T20:53: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": "h2. Description\r\nWe have modal window and a button. when user clicks on the button alert pops up.\r\nThe app is supposed to have only portrait orientation which is set in tiApp.xml file.\r\nWhen alert pops up, the device supports orientation change.\r\n\r\nh2. Testcase\r\nStep to reproduce:\r\n1.Tap on the button in the main window,which opens modal window.\r\n2.Tap on the button in modal window that brings up alert dialog.\r\n3.Try rotating the device and orientation is supported\r\n{code}\r\n\r\n//app.js\r\nvar win = Ti.UI.createWindow({\r\nbackgroundColor : '#fff',\r\n \r\norientationModes : [Ti.UI.PORTRAIT] //to be sure\r\n});\r\n \r\n \r\nvar clickMeBtn = Ti.UI.createButton({\r\n \r\ntitle : 'Click to open modal window'\r\n});\r\n\r\nvar cancelBtn = Ti.UI.createButton({\r\n \r\ntitle : 'cancel'\r\n});\r\n\r\nvar modalWin = Ti.UI.createWindow({\r\nbackgroundColor : '#bbb',\r\n \r\nmodal : true,\r\n \r\norientationModes : [Ti.UI.PORTRAIT] //to be extra double sure\r\n});\r\n\r\nvar modalButton = Ti.UI.createButton({\r\ntitle : 'Click to test Orientation'\r\n});\r\nmodalWin.add(modalButton); \r\nmodalWin.setLeftNavButton(cancelBtn);\r\n \r\nwin.add(clickMeBtn);\r\n \r\n \r\nclickMeBtn.addEventListener('click',function(_event){\r\n \r\n modalWin.open();\r\n \r\n});\r\n\r\nmodalButton.addEventListener('click', function(e) {\r\n var dialog = Ti.UI.createAlertDialog({\r\n message: 'Rotate device to see the orientaion change',\r\n ok: 'Okay',\r\n title: 'File Deleted'\r\n }).show(); \r\n//alert('Rotate device to see the orientaion change');\r\n});\r\n\r\ncancelBtn.addEventListener('click', function(e){\r\n\tmodalWin.close();\r\n});\r\n \r\nwin.open();\r\n{code}\r\n\r\nIn tiapp.xml\r\n{code}\r\n\r\n \r\n Ti.UI.PORTRAIT\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n \r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: iPad Alert dialog does not consider window orientation modes", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPAD simulator : iOS6", "comment": { "comments": [ { "id": "269312", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.1.3 githash=df94e5e Tested on Xcode 5 DP 5 ipad 4 ios7 beta 6.\r\n\r\nShould have been fixed along with windows refactor. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T17:55:22.000+0000", "updated": "2013-09-03T17:55:22.000+0000" }, { "id": "269349", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested the above code. The app has only portrait orientation.\nEnvironment:\nAppcelerator Studio, build: 3.1.3.201308302458\nTitanium SDK, build: 3.1.3.v20130902103448\nKS[3_1_X]\nhttps://github.com/appcelerator-developer-relations/KitchenSink/tree/3_1_X\nCLI: 3.1.2\nAlloy: 1.2.1\nDevices:\niPad 4 iOS7(11A4449d)", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T20:52:28.000+0000", "updated": "2013-09-03T20:52:28.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }