{ "id": "84739", "key": "AC-2883", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-03T10:08:58.000+0000", "created": "2012-01-11T12:38:57.000+0000", "labels": [ "ios", "iphone", "mobile" ], "versions": [], "issuelinks": [ { "id": "14509", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "84489", "key": "AC-2797", "fields": { "summary": "iOS: UI - Email/SMS Dialog does not change orientation properly", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "16281", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "86392", "key": "TIMOB-7627", "fields": { "summary": "iOS: UI - Email/SMS Dialog does not change orientation properly", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "updated": "2016-03-08T07:47: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nEmail dialog orientation change does not change orientation of status bar and keyboard.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\ntabGroup.orientationModes = [Titanium.UI.PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT];\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle:'Email',\r\n\theight:40\r\n});\r\nbutton.addEventListener('click', function(){\r\n\tvar emailDialog = Ti.UI.createEmailDialog({\r\n\t\torientationModes: [Titanium.UI.PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT]\r\n\t});\r\n\temailDialog.open();\r\n});\r\n\r\nwin1.add(label1);\r\nwin1.add(button);\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}", "attachment": [ { "id": "25002", "filename": "iOS Simulator - iPhone - iOS 5.0 (9A334)_2.png", "author": { "name": "nielin", "key": "nielin", "displayName": "Niel Vanterpool", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-11T12:53:49.000+0000", "size": 208071, "mimeType": "image/png" }, { "id": "25001", "filename": "iOS Simulator - iPhone - iOS 5.0 (9A334).png", "author": { "name": "nielin", "key": "nielin", "displayName": "Niel Vanterpool", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-11T12:53:49.000+0000", "size": 131383, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: UI - Email/SMS Dialog does not change orientation properly", "creator": { "name": "nielin", "key": "nielin", "displayName": "Niel Vanterpool", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nielin", "key": "nielin", "displayName": "Niel Vanterpool", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium Mobile 1.8.0.1\r\n* Mac OS X 10.6.8\r\n* Titanium Studio 1.0.7.201112281340\r\n* iOS 5.0\r\n* iPhone4, simulator and device\r\n", "comment": { "comments": [ { "id": "178907", "author": { "name": "nielin", "key": "nielin", "displayName": "Niel Vanterpool", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Notice in code that the UPSIDE_PORTRAIT orientation is not allowed. The screenshot shows how the UPSIDE_PORTRAIT orientation is rendered anyway.", "updateAuthor": { "name": "nielin", "key": "nielin", "displayName": "Niel Vanterpool", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-11T12:53:49.000+0000", "updated": "2012-01-11T12:53:49.000+0000" }, { "id": "179040", "author": { "name": "nielin", "key": "nielin", "displayName": "Niel Vanterpool", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please read Q&A Issue: http://developer.appcelerator.com/question/130482/emailsms-dialog-do-not-display-properly-on-orientation-change-ti-18--ios", "updateAuthor": { "name": "nielin", "key": "nielin", "displayName": "Niel Vanterpool", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T07:49:17.000+0000", "updated": "2012-01-12T07:49:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }