{
"id": "78218",
"key": "TIMOB-4782",
"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": "12076",
"description": "Mobile @ HQ Week",
"name": "Sprint 2011-36",
"archived": true,
"released": true,
"releaseDate": "2011-09-12"
},
{
"id": "11331",
"description": "",
"name": "Release 1.8.0",
"archived": true,
"released": true,
"releaseDate": "2011-10-31"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2011-09-14T16:07:35.000+0000",
"created": "2011-07-26T09:27:56.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [
"module_orientation",
"qe-testadded"
],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "blainhamon",
"key": "blainhamon",
"displayName": "Blain Hamon",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2014-06-19T12:46:21.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 you set landscape only on an iPad app, 1.7.2 and up do not recognize it, and it launches in Portrait.\r\n\r\nTest Code:\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win = Titanium.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff'\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\nwin.add(label1);\r\nwin.open()\r\n{code}\r\n\r\n{code:title=tiapp.xml}\r\n\r\n\t\t\r\n\t\t\tTi.UI.LANDSCAPE_LEFT\r\n\t\t\r\n\t\t\r\n\t\t\tTi.UI.LANDSCAPE_LEFT\r\n\t\t\tTi.UI.LANDSCAPE_RIGHT\r\n\t\t\r\n\r\n{code}\r\n\r\n",
"attachment": [],
"flagged": false,
"summary": "iPad Orientation Regression",
"creator": {
"name": "aleard",
"key": "aleard",
"displayName": "Alan Leard",
"active": true,
"timeZone": "America/Los_Angeles"
},
"subtasks": [],
"reporter": {
"name": "aleard",
"key": "aleard",
"displayName": "Alan Leard",
"active": true,
"timeZone": "America/Los_Angeles"
},
"environment": "1.6-1.7.1 work fine, 1.7.2 and up (CI builds) are broken",
"comment": {
"comments": [
{
"id": "161371",
"author": {
"name": "blainhamon",
"key": "blainhamon",
"displayName": "Blain Hamon",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "The sample code is invalid; the window MUST provide its orientation preferences. The XML only specifies on launch. The reason that 1.7.1 and before had a different behavior was a bug where it was not updating its orientation requests properly.\n\nBelow is a proper code snippet that, when put into the example app, does the correct behavior.\n\n{code}\nvar win = Titanium.UI.createWindow({\n title:'Tab 1',\n backgroundColor:'#fff',\n orientationModes:[\n\t\tTitanium.UI.LANDSCAPE_LEFT,\n\t\tTitanium.UI.LANDSCAPE_RIGHT,\n\t]\n});\n{code}",
"updateAuthor": {
"name": "blainhamon",
"key": "blainhamon",
"displayName": "Blain Hamon",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2011-08-01T13:50:20.000+0000",
"updated": "2011-08-01T13:50:20.000+0000"
},
{
"id": "161494",
"author": {
"name": "aleard",
"key": "aleard",
"displayName": "Alan Leard",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "After adding the above code snippet, there is still a visual rotation on app launch that is not the desired result. Application should launch and statically display a landscape view, not the window rotating upon opening.",
"updateAuthor": {
"name": "aleard",
"key": "aleard",
"displayName": "Alan Leard",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2011-08-02T07:59:21.000+0000",
"updated": "2011-08-02T07:59:21.000+0000"
},
{
"id": "161685",
"author": {
"name": "egomez",
"key": "egomez",
"displayName": "Eduardo Gomez",
"active": false,
"timeZone": "America/Los_Angeles"
},
"body": "h5.Associated HD ticket\r\nCustomer reported an issue alike this, http://appc.me/c/APP-537473\r\n\r\nh5.Problem\r\nif landscape_left and landscape_right are configured, the app always starts in landscape_right.\r\n\r\nh5.Tested on\r\nSimulator iOS 4.x / Device iPad 1\r\n\r\nh5.Repro sequence\r\n{code:title=app.js}\r\nvar window = Ti.UI.createWindow({\r\n left:0,\r\n top:0,\r\n width:1024,\r\n height:768,\r\n backgroundColor:\"black\"\r\n});\r\nwindow.orientationModes = [Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT];\r\n\r\nvar root_view = Ti.UI.createView({\r\n left:0,\r\n top:0,\r\n width:1024,\r\n height:768\r\n});\r\n\r\n\r\nvar visible = true;\r\n\r\nvar view1 = Ti.UI.createImageView({\r\n top:0,\r\n height:300,\r\n width:1024,\r\n left:0,\r\n image:\"http://agro.biodiver.se/wp-content/uploads/2010/09/catie-pano2-1024x300.jpg\"\r\n});\r\n\r\nvar view2 = Ti.UI.createImageView({\r\n bottom:0,\r\n left:0,\r\n width:1024,\r\n height:300,\r\n image:\"http://kiarasbastelwelt.ki.funpic.de/masken/1024x300DMaskms.jpg\"\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title:\"show/hide\",\r\n width:300,\r\n height:50,\r\n top:320,\r\n left:300\r\n});\r\nbutton.addEventListener(\"click\", function(e) {\r\n if(visible) {\r\n visible = false;\r\n view1.hide();\r\n view2.hide();\r\n } else {\r\n visible = true;\r\n view1.show();\r\n view2.show();\r\n }\r\n})\r\n\r\nroot_view.add(view1);\r\nroot_view.add(view2);\r\nroot_view.add(button);\r\n\r\nwindow.add(root_view);\r\nwindow.open();\r\n{code}\r\n\r\nh5.Additional info\r\nTried to manually set Orientation on Info.plist (copy&paste from Buld/iphone/Info.plist to Root project folder):\r\n\r\n{noformat}\r\nUISupportedInterfaceOrientations\r\n\r\n UIInterfaceOrientationLandscapeLeft\r\n UIInterfaceOrientationLandscapeRight\r\n\r\n{noformat}\r\n\r\nLet me know if another Jira ticket should be opened instead of adding info to this one. ",
"updateAuthor": {
"name": "egomez",
"key": "egomez",
"displayName": "Eduardo Gomez",
"active": false,
"timeZone": "America/Los_Angeles"
},
"created": "2011-08-03T08:30:41.000+0000",
"updated": "2011-08-03T08:35:28.000+0000"
},
{
"id": "164332",
"author": {
"name": "vsingh",
"key": "vsingh",
"displayName": "Vikramjeet Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Tested On: \n\nMac OSX Lion\nTiMob: 1.8.0v20110819142548\nTiStud: 1.0.4.201108101535\n\nDevices:\n\niPhpne Simulator\niPad2 version 4.3.5\niPhen4 version 4.2.10\niPod 3",
"updateAuthor": {
"name": "vsingh",
"key": "vsingh",
"displayName": "Vikramjeet Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2011-08-29T10:20:53.000+0000",
"updated": "2011-08-29T10:20:53.000+0000"
},
{
"id": "165309",
"author": {
"name": "avaghti",
"key": "avaghti",
"displayName": "Alan Vaghti",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Reopening issue. It is my understanding that if a window does not specify orientation, then it will get it's orientation from what is in the tiapp.xml. If so, then the original test code is valid and the issue is still occurring (tested in SDK 1.8.0v20110906155354).",
"updateAuthor": {
"name": "avaghti",
"key": "avaghti",
"displayName": "Alan Vaghti",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2011-09-07T15:25:28.000+0000",
"updated": "2011-09-07T15:25:28.000+0000"
},
{
"id": "165561",
"author": {
"name": "dthorp",
"key": "dthorp",
"displayName": "Don Thorp",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Removed Sprint 2011-31 since it was re-opened.",
"updateAuthor": {
"name": "dthorp",
"key": "dthorp",
"displayName": "Don Thorp",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2011-09-09T14:56:03.000+0000",
"updated": "2011-09-09T14:56:03.000+0000"
},
{
"id": "166105",
"author": {
"name": "rseagraves",
"key": "rseagraves",
"displayName": "Reggie Seagraves",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "resolved by https://github.com/appcelerator/titanium_mobile/pull/464",
"updateAuthor": {
"name": "rseagraves",
"key": "rseagraves",
"displayName": "Reggie Seagraves",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2011-09-14T16:07:23.000+0000",
"updated": "2011-09-14T16:07:23.000+0000"
},
{
"id": "166250",
"author": {
"name": "avaghti",
"key": "avaghti",
"displayName": "Alan Vaghti",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Fix verified on an iPad 2 4.3.5, iPad 4.3.5, iPhone 4 4.2.10, iPod 3rd gen 4.0.2.\n\nSDK used: 1.8.0v20110915133349\n\nBy design, the test case does need Blain's changes to be a proper test case.",
"updateAuthor": {
"name": "avaghti",
"key": "avaghti",
"displayName": "Alan Vaghti",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2011-09-15T17:01:30.000+0000",
"updated": "2011-09-15T17:01:30.000+0000"
}
],
"maxResults": 8,
"total": 8,
"startAt": 0
}
}
}