{ "id": "62233", "key": "TIMOB-1601", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-09-05T18:57:46.000+0000", "created": "2011-04-15T02:57:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20533", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "100406", "key": "TIMOB-10747", "fields": { "summary": "TiAPI: Ti.Gesture is for user input via hardware, not for the software response", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:51:33.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": "{html}
from community,
\r\n1.using the provided code create an iPad or iPhone app
\r\n2.starting in landscape mode, slowly rotate
results:before the app UI changes over to portrait, the screen\r\nchanges to white, meaning the orientation change handler fired\r\nprior to the actual event.
\r\nvar mainWin = Ti.UI.createWindow({//url:\"main.js\",
\r\n title:'Decks',\r\n barColor:\"#333\",\r\n tabBarHidden: true\r\n });
\r\n
\r\nvar decksTab = Ti.UI.createTab({title: \"Decks\", window:\r\nmainWin});
\r\nvar tabGroup = Titanium.UI.createTabGroup({});
\r\ntabGroup.addTab(decksTab);
\r\nmainWin.tab = decksTab;
\r\nmainWin.tabGroup = tabGroup;
\r\ntabGroup.open();
mainWin.orientationModes = [
\r\nTitanium.UI.PORTRAIT,\r\nTitanium.UI.LANDSCAPE_LEFT,\r\nTitanium.UI.LANDSCAPE_RIGHT
\r\n
\r\n];
\r\nTi.Gesture.addEventListener(
\r\n'orientationchange', function(e) {\r\n if (e.orientation == Titanium.UI.LANDSCAPE_LEFT ||\r\n e.orientation == Titanium.UI.LANDSCAPE_RIGHT) {\r\n mainWin.backgroundColor = \"#fff\";\r\n } else {\r\n mainWin.backgroundColor = \"#000\";\r\n }\r\n});
\r\n
Any chance of this getting into 1.6? On the main screen of my\napp I had a background image behind a tableview. If I take no\naction, the image gets squished to fit into landscape mode, so I\nhad to create a separate image for landscape, and set that image\nwhen the orientation event fires. But because of this bug, when the\nuser is holding the device at certain angles the image rapidly\nflips back and forth between portrait and landscape versions,\ndespite the screen not rotating, and it looks pretty unprofessional\n(and many users don't connect it with an orientation problem). For\nthe latest release of my app I had to replace the background image\nwith a plain colour to avoid this problem, but now I have users\nasking me why I took away the image, and asking for it back.
An additional ticket reference: http://developer.appcelerator.com/helpdesk/view/67381
\nAlso an issue when tilting the iPhone of iPad away from the\nuser.
Original helpdesk ticket was http://developer.appcelerator.com/helpdesk/view/36731