{ "id": "90670", "key": "TIMOB-8848", "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-04-24T11:37:02.000+0000", "created": "2012-04-20T12:21:14.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "SupportTeam", "core" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:25:02.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": "h4. Description problem\r\nWhen doing a change of orientation when you opening different windows you will get an undesired offset in the tabs when coming back to previous window. \r\n\r\nh4. Actual Results\r\nWhen you come back to the previous window, the window is moved by an offset.\r\n\r\nh4. Expected Results\r\nThe window not moved. \r\n\r\nh4. Test Case\r\n1. Hold the device in portrait and launch the app.\r\n2. Now click the window, it will launch the blue window in landscape.\r\n3. Tilt the device to landscape.\r\n4. Now place it on the table.\r\n5. Click on the blue window. Now the blue window will close, and you can see the parent window displayed in portrait mode, but it would have either moved a little to the top or a little down (check the attached screen). \r\n\r\n\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nwin1.orientationModes=[\r\nTitanium.UI.PORTRAIT,\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.LANDSCAPE_RIGHT\r\n ];\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\ngl = {};\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\nTi.include('win2.js');\r\nwin1.addEventListener('click',function(){\r\n\tgl.createNewWindow();\r\n});\r\nwin1.add(label1);\r\ntabGroup.addTab(tab1); \r\ntabGroup.open();\r\n{code}\r\n\r\n{code:title=win2.js}\r\ngl.createNewWindow = function(){\r\n\tvar win2 = Titanium.UI.createWindow({ \r\n title:'I am window2',\r\n backgroundColor:'blue'\r\n});\r\nwin2.orientationModes=[\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.LANDSCAPE_RIGHT\r\n ];\r\n \r\n win2.open();\r\n win2.addEventListener('click',function(e){\r\n \t//Ti.Android.currentActivity.setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_PORTRAIT);\r\n \twin2.close();\r\n \tTi.UI.orientation = Titanium.Gesture.orientation;\r\n })\r\n}\r\n{code}\r\n\r\nh4. HD Discussion\r\n\r\nhttp://support-admin.appcelerator.com/display/APP-851611/conversation/read_all", "attachment": [ { "id": "27318", "filename": "photo.PNG", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-04-20T12:21:14.000+0000", "size": 33631, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Window alignment issue on orientation change", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 2.0.1GA2 \r\nPlatform & version: iOS 5.x \r\nDevice Details: iphone 4\r\nHost Operating System: OS X 10.7.3 \r\nTitanium Studio version: 2.0", "comment": { "comments": [ { "id": "192248", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Ti.UI.orientation is a deprecated property and is not guaranteed to work. orientationModes is the preferred way to control window orientations. \r\n\r\n\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T11:00:07.000+0000", "updated": "2012-04-23T11:00:07.000+0000" }, { "id": "192249", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Using deprecated property + there is no clear indication as to what the code is trying to accomplish", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T11:00:42.000+0000", "updated": "2012-04-23T11:00:42.000+0000" }, { "id": "192253", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Added this info, the link to the docs and the example of code into the HD.\r\n\r\nBest,\r\n\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-04-23T11:10:19.000+0000", "updated": "2012-04-23T11:10:19.000+0000" }, { "id": "192411", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\nthe customer was using a deprecated call to the API. ONce it's using the recent one, there is no bug anymore.\r\n\r\nBest,\r\n\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-04-24T11:37:02.000+0000", "updated": "2012-04-24T11:37:02.000+0000" }, { "id": "411005", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:25:02.000+0000", "updated": "2017-03-09T23:25:02.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }