{ "id": "88973", "key": "TIMOB-8334", "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-04T09:23:30.000+0000", "created": "2012-03-27T13:57:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "qe-testadded" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "16128", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "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": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:43.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 open a modal window and then rotate the simulator/device, you will see that the top 44px is covered by the navBar.\r\n\r\nh4. Steps to reproduce\r\nStep 1: run the code below\r\nStep 2: notice the text at the top of the window\r\nStep 3: rotate the simulator or device\r\nStep 4: notice that the text is missing (if you pull down on the window you can see the text is under the navBar);\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tmodal:true,\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tcontentHeight: 1030,\r\n\tcontentWidth: 1030,\r\n\tbackgroundColor: 'green'\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'THIS IS SOME TEXT',\r\n\theight: 'auto',\r\n\twidth: 'auto',\r\n\ttop: 0\r\n});\r\n\r\nwin.add(scrollView);\r\nscrollView.add(label);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh4. Workaround\r\n{code}\r\nfunction handleOrientationChange() {\r\n\tTi.Gesture.removeEventListener('orientationchange', handleOrientationChange);\r\n\tscrollView.top = 44;\r\n}\r\nTi.Gesture.addEventListener('orientationchange', handleOrientationChange);\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: modal window - orientation change causes the top 44px to be hidden under the nav bar", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK. 1.8.2\r\niOS Simulator 5.1", "comment": { "comments": [ { "id": "188922", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is already fixed on master(2.0.0) by [PR1490|https://github.com/appcelerator/titanium_mobile/pull/1490]", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-27T14:38:32.000+0000", "updated": "2012-03-27T14:38:32.000+0000" }, { "id": "188994", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120328000206\r\nTitanium Studio, build: 2.0.0.201203271933\r\nxcode: 4.3\r\nDevice: iphone 4 (5.1)\r\n\r\nNote to QE: When porting: \r\n\r\n* Add the following code in tiapp.xml under :\r\n{code}\r\nTitanium.UI.LANDSCAPE_LEFT\r\nTitanium.UI.LANDSCAPE_RIGHT\r\n{code}\r\n\r\n* In Ti.UI.createScrollView(), change contentHeight and contentWidth to 'auto'", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T09:13:21.000+0000", "updated": "2012-03-28T09:13:21.000+0000" }, { "id": "189813", "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-04T09:22:20.000+0000", "updated": "2012-04-04T09:22:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }