{ "id": "105116", "key": "TIMOB-11801", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14784", "description": "2012 Sprint 25 API", "name": "2012 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-06T00:59:00.000+0000", "created": "2012-11-16T08:34:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "qe-port" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42: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": "h3. Issue\r\n\r\nWindow increases in height by the height of the iPad status bar (20px) when a \"fullscreen\" window is opened on top and rotated. It also increases when the camera view is opened and rotated.\r\n\r\nh3. Sample Code\r\n\r\n{noformat}\r\nvar win = Ti.UI.createWindow({\r\n top: 0, // <<<<<< With 'top', the bug appears. Comment out 'top', bug doesn't appear.\r\n left: 0,\r\n right: 0,\r\n backgroundColor: 'yellow',\r\n bottom: 20\r\n});\r\n\r\nvar footer = Ti.UI.createView({\r\n bottom: 0,\r\n height: 20,\r\n width: Ti.UI.FILL,\r\n backgroundColor: 'red'\r\n});\r\nwin.add(footer);\r\n\r\nvar fswBtn = Ti.UI.createButton({\r\n top: 10,\r\n left: 10,\r\n width: 150,\r\n height: 50,\r\n title: 'fullscreen window',\r\n backgroundColor: 'white',\r\n});\r\nwin.add(fswBtn);\r\nfswBtn.addEventListener('singletap', function() {\r\n fullscreenWinTest();\r\n});\r\n\r\nvar cameraBtn = Ti.UI.createButton({\r\n top: 10,\r\n left: 200,\r\n width: 150,\r\n height: 50,\r\n title: 'camera',\r\n backgroundColor: 'white',\r\n});\r\nwin.add(cameraBtn);\r\ncameraBtn.addEventListener('singletap', function() {\r\n cameraTest();\r\n});\r\n\r\nwin.open();\r\n\r\nfunction fullscreenWinTest() {\r\n var fswin = Ti.UI.createWindow({\r\n fullscreen: true,\r\n backgroundColor: 'blue'\r\n });\r\n var closeBtn = Ti.UI.createButton({\r\n top: 10,\r\n left: 10,\r\n width: 150,\r\n height: 50,\r\n title: 'close',\r\n backgroundColor: 'white'\r\n });\r\n fswin.add(closeBtn);\r\n closeBtn.addEventListener('singletap', function() {\r\n fswin.close();\r\n });\r\n\r\n fswin.open();\r\n}\r\n\r\nfunction cameraTest() {\r\n var overlay = Ti.UI.createView();\r\n\r\n var closeBtn = Ti.UI.createButton({\r\n top: 10,\r\n left: 10,\r\n width: 150,\r\n height: 50,\r\n title: 'close',\r\n backgroundColor: 'white'\r\n });\r\n overlay.add(closeBtn);\r\n closeBtn.addEventListener('singletap', function() {\r\n Ti.Media.hideCamera();\r\n });\r\n\r\n Ti.Media.showCamera({\r\n overlay: overlay,\r\n });\r\n}\r\n\r\n{noformat}\r\n\r\nh3. Steps to Reproduce\r\n\r\n1) Start the app\r\n2) Notice the red footer 20 pixels above the ipad simulator's window bottom that is black\r\n3) Rotate the iPad (device or simulator)\r\n4) The 20 pixel height is maintained\r\n5) Tap the \"fullscreen window\" button\r\n6) Rotate\r\n7) Tap [close] button\r\n8) The 20 pixel height area is gone\r\n9) Rotate again and the 20 pixel height area reappears\r\n\r\nSame issue also occurs with the camera overlay (code included in the sample) \r\n", "attachment": [], "flagged": false, "summary": "iOS: Window height increases by iPad status bar height when camera or full screen window atop rotates", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Platform OS: iOS 5+\r\nTitanium SDK: 2.1.3.GA, 2.1.4.GA, 2.1.3 CI", "comment": { "comments": [ { "id": "229961", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3526", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T22:34:46.000+0000", "updated": "2012-12-04T22:34:46.000+0000" }, { "id": "234714", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.0.v20130114171802\r\nStudio:3.0.1.201212181159\r\nDevice: iPad2(v5.1), iPad3(v 6.0)\r\n\r\nWorks as expected", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T02:32:39.000+0000", "updated": "2013-01-17T02:32:39.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }