{ "id": "84586", "key": "TIMOB-7028", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-02T14:30:57.000+0000", "created": "2012-01-09T05:36:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_orientation", "qe-testadded", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15785", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "85760", "key": "TIMOB-7486", "fields": { "summary": "iOS - on modal window orientation misplaces children", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-02T14:30:57.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": "On iOS in Titanium Mobile 1.8.0.1, vertical layouts are not being redrawn correctly on an orientation change. This seems also be related to the specific use of a modal window in this example. The following was reported by a community member, and confirmed not to be working by me.\r\n\r\n{code:javascript}\r\nvar wnd = Ti.UI.createWindow({\r\n title: \"Title Bar\",\r\n modal: true,\r\n backgroundColor: \"#FFF\", \r\n orientationModes: [\r\n Titanium.UI.PORTRAIT,\r\n Titanium.UI.UPSIDE_PORTRAIT,\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.LANDSCAPE_RIGHT\r\n ],\r\n layout: \"vertical\"\r\n});\r\nvar view = Ti.UI.createView({backgroundColor: \"#F00\", height: 200});\r\nvar view2 = Ti.UI.createView({backgroundColor: \"#00F\", height: 216});\r\nvar text = Ti.UI.createTextArea({backgroundColor: \"#0F0\", suppressReturn: false});\r\n \r\n \r\nview.add(text);\r\nwnd.add(view);\r\nwnd.add(view2);\r\nwnd.open();\r\n \r\nTi.Gesture.addEventListener(\"orientationchange\", function (event) {\r\n view.height = 200;\r\n view2.height = 216;\r\n if (event.orientation === Ti.UI.LANDSCAPE_LEFT || event.orientation === Ti.UI.LANDSCAPE_RIGHT)\r\n {\r\n view.height = 106;\r\n view2.height = 162;\r\n }\r\n});\r\n{code}\r\n\r\nWhen the above is run, the window displays correctly initially, but when the orientation change happens, it appears to start drawing the content underneath the nav bar for this window.", "attachment": [], "flagged": false, "summary": "iOS: Vertical layout not working on orientation change", "creator": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "178488", "author": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "body": "Original report and potential alternate solution:\r\n\r\nhttp://developer.appcelerator.com/question/130389/controls-fall-under-the-navigation-bar-after-rotation", "updateAuthor": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "created": "2012-01-09T05:40:05.000+0000", "updated": "2012-01-09T05:40:05.000+0000" }, { "id": "183730", "author": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "body": "Layouts in modal windows in general are not being redrawn correctly on an orientation change.", "updateAuthor": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "created": "2012-02-18T10:52:50.000+0000", "updated": "2012-02-18T11:03:22.000+0000" }, { "id": "186873", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. The vertical layout works fine on orientation change. No part of the content gets hidden.\r\nVerified fix on:\r\n\r\nSDK build: 2.0.0.v20120316093247\r\nTitanium Studio, build: 2.0.0.201203152033\r\nDevice: iPhone4 (V4.3.5)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T14:03:50.000+0000", "updated": "2012-03-16T14:03:50.000+0000" }, { "id": "189552", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-02T14:30:28.000+0000", "updated": "2012-04-02T14:30:28.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }