{ "id": "65562", "key": "TIMOB-4137", "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": "11357", "description": "Mobile 1.8.0 M04", "name": "Sprint 2011-25", "archived": true, "released": true, "releaseDate": "2011-06-27" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-24T13:23:58.000+0000", "created": "2011-05-18T16:38:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "14052", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "77591", "key": "TIMOB-4619", "fields": { "summary": "iPad - Redraw issues after dismissing a modal when orientation was changed post spawn", "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": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-12-03T17:55:56.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 a locked orientation and then open a modal with other orientations allowed, then close that modal, the status bar resets to the original locked orientation, but the window doesn't. The same process with a regular window works as expected.\r\n\r\nIf this fix can be rolled into 1.6.3 that would be great.\r\n\r\nHere is test code:\r\n{code}\r\n\r\nvar win = Titanium.UI.createWindow();\r\n\r\nwin.orientationModes = [\r\n\tTitanium.UI.PORTRAIT,\r\n\tTitanium.UI.UPSIDE_PORTRAIT,\r\n\tTitanium.UI.LANDSCAPE_LEFT,\r\n\tTitanium.UI.LANDSCAPE_RIGHT,\r\n\tTitanium.UI.FACE_UP,\r\n\tTitanium.UI.FACE_DOWN\r\n]; \r\n\r\nvar landscape = Titanium.UI.createButton({\r\n\ttitle:'Allow Portrait Only',\r\n\twidth:200,\r\n\theight:40,\r\n\ttop:140\r\n});\r\n\r\nlandscape.addEventListener('click', function()\r\n{\r\n\t// set and enforce landscape for this window\r\n\twin.orientationModes = [\r\n\t\tTi.UI.PORTRAIT\r\n\t]; \r\n \r\n var modal = Ti.UI.createWindow({\r\n modal:true,\r\n backgroundColor:'blue',\r\n orientationModes: [\r\n Ti.UI.LANDSCAPE_LEFT\r\n , Ti.UI.LANDSCAPE_RIGHT\r\n , Ti.UI.PORTRAIT\r\n , Ti.UI.UPSIDE_PORTRAIT\r\n ]\r\n\r\n });\r\n \r\n var label = Ti.UI.createLabel({\r\n text:'Now Rotate to landscape and close the window',\r\n color:'white',\r\n width:'auto'\r\n });\r\n \r\n var back = Ti.UI.createButton({\r\n title:'Close',\r\n style:Titanium.UI.iPhone.SystemButtonStyle.PLAIN\r\n });\r\n\r\n back.addEventListener('click', function() {\r\n modal.close();\r\n win.orientationModes = [\r\n\t\tTi.UI.PORTRAIT\r\n ]; \r\n Titanium.UI.orientation = Titanium.UI.PORTRAIT;\r\n\r\n });\r\n \r\n modal.add(label);\r\n modal.setLeftNavButton(back);\r\n\r\n modal.open();\r\n});\r\n\r\n\r\nwin.add(landscape);\r\nwin.open();\r\n\r\n{code}\r\n\r\nHere is a screen shot of the results from a test in Kitchen Sink: http://screencast.com/t/k0lriaPtNuO", "attachment": [ { "id": "21446", "filename": "4137_2011-06-23-111048_Jeff-Haynies-iPad.crash", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-23T11:38:16.000+0000", "size": 18607, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Forced Orientation lost after Modal closed", "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": null, "comment": { "comments": [ { "id": "157597", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was in progress a while back", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-22T16:48:47.000+0000", "updated": "2011-06-22T16:48:47.000+0000" }, { "id": "157672", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Included a crash log from pull request 147. ", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-23T11:37:45.000+0000", "updated": "2011-06-23T11:37:45.000+0000" }, { "id": "157683", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After fixing the crasher, I have found one edge case: If the code is run as-is on a 3.2 iPad, it can make the modal in a bad state. HOWEVER, this ONLY affects 3.2 and not 4.0+ (Nor 3.1, oddly), and if win.orientationModes is only Ti.UI.PORTRAIT to begin with, it's all gravy. Since changing the orientation in the middle of the window hiding is a really strange situation, and won't be an issue in 1.8, this edge case will be a won't fix. But the rest of the bug is game on.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-23T12:38:44.000+0000", "updated": "2011-06-23T12:38:44.000+0000" }, { "id": "157746", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull accepted, took a long time to figure out where it went and cherry-pick it into 1_7_X", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-24T13:23:58.000+0000", "updated": "2011-06-24T13:23:58.000+0000" }, { "id": "158858", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed with iPhone 3GS (3.1.2), iPad 2 (4.3.3), iPod 3rd Gen (4.0.2), SDK 1.7.x r177ece80", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T18:09:56.000+0000", "updated": "2011-07-06T18:09:56.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }