{ "id": "102763", "key": "TIMOB-11281", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-26T23:00:28.000+0000", "created": "2012-10-05T20:33:32.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-ios100112", "qe-ios6" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-26T23:00:28.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": "Description:\r\nAn application does not recognize an upside portrait mode on rotation.\r\n\r\n*This is not a regression, occurs on 2.1.3.GA and only on ios 6.0*\r\nTest steps:\r\n1) Create a new project and place the following in the app.js:\r\n{code}\r\nvar btn = Ti.UI.createButton({\r\n\t\t\twidth: 70,\r\n\t\t\theight: 70,\r\n\t\t\ttitle: 'press me',\r\n\t\t\tcolor: 'black'\r\n\t\t});\r\n\t\t\r\n\t\t_window.add(btn);\r\n\t\t\r\n\t\tbtn.addEventListener('click', function() {\r\n\t\t\t\r\n\t\t\tvar abtn = Ti.UI.createButton({\r\n\t\t\twidth: 40,\r\n\t\t\theight: 40,\r\n\t\t\ttitle: 'close',\r\n\t\t\tcolor: 'black'\r\n\t\t});\r\n\t\t\t\r\n\t\t\tvar wnd = Ti.UI.createWindow({\r\n\t\t\t\ttitle : \"Title Bar\",\r\n\t\t\t\tmodal : true,\r\n\t\t\t\tbackgroundColor : \"#FFF\",\r\n\t\t\t\torientationModes : [Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT],\r\n\t\t\t\tlayout : \"vertical\"\r\n\t\t\t});\r\n\t\t\tvar view = Ti.UI.createView({\r\n\t\t\t\tbackgroundColor : \"#F00\",\r\n\t\t\t\theight : 200\r\n\t\t\t});\r\n\t\t\tvar view2 = Ti.UI.createView({\r\n\t\t\t\tbackgroundColor : \"#00F\",\r\n\t\t\t\theight : 216\r\n\t\t\t});\r\n\t\t\tvar text = Ti.UI.createTextArea({\r\n\t\t\t\tbackgroundColor : \"#0F0\",\r\n\t\t\t\tsuppressReturn : false\r\n\t\t\t});\r\n\r\n\t\t\tview.add(text);\r\n\t\t\twnd.add(view);\r\n\t\t\twnd.add(view2);\r\n\t\t\tview.add(abtn)\r\n\t\t\twnd.open();\r\n\r\n abtn.addEventListener('click', function() {\r\n \t wnd.close();\r\n });\r\n\r\n\t\t\tTi.Gesture.addEventListener(\"orientationchange\", function(event) {\r\n\t\t\t\tview.height = 200;\r\n\t\t\t\tview2.height = 216;\r\n\t\t\t\tif(event.orientation === Ti.UI.LANDSCAPE_LEFT || event.orientation === Ti.UI.LANDSCAPE_RIGHT) {\r\n\t\t\t\t\tview.height = 106;\r\n\t\t\t\t\tview2.height = 162;\r\n\t\t\t\t}\r\n\t\t\t}); \r\n\r\n\t\t});\r\n\t\t\r\n\t\treturn _window;\r\n\t{code}\r\n2) Launch project\r\n3)Click on \"press me\" button\r\n4)Rotate device\r\n\r\nExpected results: Application should recognize upside portrait mode, and 2 vies(blue ander red) should look the same as in portrait mode.\r\n\r\nActual result: After rotation from landscape to upside portrait views resize and stay in landscape. See attachments.", "attachment": [ { "id": "32333", "filename": "expected landscape.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-05T20:33:32.000+0000", "size": 31127, "mimeType": "image/png" }, { "id": "32332", "filename": "expected portrait.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-05T20:33:32.000+0000", "size": 33216, "mimeType": "image/png" }, { "id": "32334", "filename": "upside down portrait_wrong.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-05T20:33:32.000+0000", "size": 30947, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Orientation - upside portrait mode is not recognized by application ", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 3.0.0.v20121005014113\r\nDevices:\r\niPhone 5 ios 6.0\r\niPhone 4S ios 6.0", "comment": { "comments": [ { "id": "422900", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\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.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T23:00:28.000+0000", "updated": "2017-06-26T23:00:28.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }