{ "id": "61755", "key": "TIMOB-1123", "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": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:16.000+0000", "created": "2011-04-15T02:44:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "iphone", "mode", "orientation" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:16.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}

In sdk 1.3.1 the first orientation change is not honored when\nsetting the orientation mode to PORTRAIT only. The code below shows\nthat the window rotates to landscape on the first rotation only,\nthen it follows what was set in orientation modes. Just a note:\nthis is holding up the app of the customer that found this.

\n

// this sets the background color of the master UIView (when\nthere are no windows/tab groups on it)\nTitanium.UI.setBackgroundColor('#000');

\n

// // create base UI tab and root window // var win1 =\nTitanium.UI.createWindow({

\n
\ntitle:'Tab 1',\nbackgroundColor:'#fff'\n
\n

});

\n

win1.add( Ti.UI.createLabel( { text: 'label to show\norientation', top:50, left:10}));

\n

win1.orientationModes =[Ti.UI.PORTRAIT];
\nwin1.orientation = Ti.UI.PORTRAIT;

\n

// open tab group win1.open();

{html}", "attachment": [], "flagged": false, "summary": "Orientation Change not working correctly", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124901", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

fyi - this holding up a premium customers project.
\nhttp://helpdesk.appcelerator.net/tickets/3007

{html}", "updateAuthor": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:44:38.000+0000", "updated": "2011-04-15T02:44:38.000+0000" }, { "id": "124902", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

In the following (correct) code I'm not seeing any orientation\nissues:

\n
\n// this sets the background color of the master UIView (when there are no windows/tab groups on it) \nTitanium.UI.setBackgroundColor('#000');\n\n// // create base UI tab and root window // \nvar win1 = Titanium.UI.createWindow({\n\ntitle:'Tab 1',\nbackgroundColor:'#fff'\n});\n\nwin1.add( Ti.UI.createLabel( { text: 'label to show orientation', top:50, left:10}));\n\nwin1.orientationModes =[Ti.UI.PORTRAIT];\nTi.UI.orientation = Ti.UI.PORTRAIT;\n\n// open tab group \nwin1.open();\n
\n

The window stays in PORTRAIT orientation, even as the device\nrotates.

\n

Will get some independent confirmation from Blain and determine\nif the helpdesk ticket is asking something different before\nclosing.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:44:38.000+0000", "updated": "2011-04-15T02:44:38.000+0000" }, { "id": "124903", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

in 1.3.1 this is broken. it may be fixed in head but I have not\nbuilt from
\nhead.

{html}", "updateAuthor": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:44:38.000+0000", "updated": "2011-04-15T02:44:38.000+0000" }, { "id": "124904", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Could you check in head and see if this was fixed? Blain may\nactually have done it already as part of another ticket, and I\ncan't reproduce the behavior you seem to be describing.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:44:38.000+0000", "updated": "2011-04-15T02:44:38.000+0000" }, { "id": "124905", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This issue still exists. The JS above actually demonstrates\ncorrect behavior, but the following reproduces the described\nbug:

\n
\n// this sets the background color of the master UIView (when there are no windows/tab groups on it) \nTitanium.UI.setBackgroundColor('#000');\n\n// // create base UI tab and root window // \nvar win1 = Titanium.UI.createWindow({\n\ntitle:'Tab 1',\nbackgroundColor:'#fff'\n});\n\nwin1.add( Ti.UI.createLabel( { text: 'label to show orientation', top:50, left:10}));\n\nwin1.orientationModes =[Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT];\nTi.UI.orientation = Ti.UI.LANDSCAPE_LEFT;\n\n// open tab group \nwin1.open();\n
{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:44:39.000+0000", "updated": "2011-04-15T02:44:39.000+0000" }, { "id": "124906", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Okay, my mistake. This is fixed in HEAD, it must be a duplicate\nof something Blain did. All I can say is that you should be aware\nof the difference between PORTRAIT and UPSIDE_PORTRAIT.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:44:39.000+0000", "updated": "2011-04-15T02:44:39.000+0000" }, { "id": "124907", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I understand. However, our docs are not up to snuff. We have to\nremember our target audience are not obj-c programmers, so they may\nnot know the difference between PORTRAIT and UPSIDE_PORTRAIT.

{html}", "updateAuthor": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:44:39.000+0000", "updated": "2011-04-15T02:44:39.000+0000" }, { "id": "124908", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've made a doc change that clarifies this.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:44:39.000+0000", "updated": "2011-04-15T02:44:39.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }