{ "id": "89335", "key": "TIMOB-8484", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-13T17:39:06.000+0000", "created": "2012-04-02T09:14:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "qe-port" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-14T16:21:45.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": "*Code*\r\nhttp://pastebin.com/NXYbpfRH\r\n\r\n*Expected behavior*\r\nWhen you run the app, watch the YouTube video, it should return without messing up any UI.\r\n\r\n*Actual behavior*\r\nOnce the video has finished, it actually shows the status bar overlapping the window.\r\n\r\n*Steps to reproduce*\r\n1) Click \"Watch YouTube Video\"\r\n2) Click on webview to play Youtube video while holding device in PORTRAIT orientation\r\n3) While video is loading, turn device to LANDSCAPE. You will notice that status bar moves to the PORTRAIT orientation.\r\n4) While video is playing in LANDSCAPE, return device to PORTRAIT orientation (you will notice that statusbar is in proper position).\r\n5) Return device to LANDSCAPE orientation, and end video by clicking \"Done\".\r\n6) The Youtube player will close and the window will reopen with window's navbar underneath the status bar.\r\n\r\n*Notes*\r\n-Only happens on a device, I tried with an iPhone 3GS running 5.0.1.\r\n-HD ticket: http://support-admin.appcelerator.com/display/APP-333237", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.Window not restoring correctly after a youtube-in-app view exits", "creator": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium SDK version: 1.8.2\r\nPlatform & version: iPhone 3GS, iOS 5.0.1\r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio version: 1.0.9.201202141208", "comment": { "comments": [ { "id": "190799", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1991", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-12T14:42:55.000+0000", "updated": "2012-04-12T14:42:55.000+0000" }, { "id": "190979", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Code above is\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\ntabGroup.orientationModes = [Titanium.UI.PORTRAIT];\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\n\r\nvar win2 = Titanium.UI.createWindow({ title:'Tab 2', backgroundColor:'#fff' });\r\nvar button2 = Ti.UI.createButton({ title:'Watch YouTube Video', height:40 });\r\nbutton2.addEventListener('click', function() {\r\nvar win3 = Titanium.UI.createWindow({ title:'YouTube', backgroundColor:'#CCC' });\r\nvar url = 'http://www.youtube.com/watch?v=6b4ZZQkcNEo';\r\nvar html = '' + \r\n'' +\r\n'' +\r\n'
' +\r\n'' +\r\n'' +\r\n'' +\r\n'' +\r\n'' +\r\n'
' +\r\n'' + \r\n'';\r\nvar webview = Ti.UI.createWebView({ top: 0, left: 0, fullscreen:true, html: html, height:240, width:320 });\r\nwin3.add(webview);\r\n\r\n// win3.addEventListener('focus', function() { // webview.html = html; // webview.height = 240; // webview.width = 320; // });\r\ntabGroup.activeTab.open(win3);\r\n});\r\nwin2.add(button2);\r\n\r\n//\r\n// create tabs\r\n//\r\nvar tab2 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'Tab 2', window:win2 });\r\n\r\n//\r\n// add tabs\r\n// \r\ntabGroup.addTab(tab2);\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-13T17:04:01.000+0000", "updated": "2012-04-13T17:04:01.000+0000" }, { "id": "190983", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-13T17:39:06.000+0000", "updated": "2012-04-13T17:39:06.000+0000" }, { "id": "214482", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK: 2.2.0.v20120813184911\r\nDevices:\r\niPhone 4s 5.0.1\r\niPad1 5.1.1\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T16:21:45.000+0000", "updated": "2012-08-14T16:21:45.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }