{ "id": "92749", "key": "TIMOB-9359", "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": "13407", "description": "Sprint 2012-11 API", "name": "Sprint 2012-11 API", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-08T17:07:34.000+0000", "created": "2012-06-04T02:12:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_window", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-11T10:16:40.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": "See the sample code below, WebView completely disappears from Window when the Window re-opened. It does NOT happen if bugged window source code loaded from external JS file (i.e., loaded with \"url\" property).\r\n\r\nCode has been tested with 2.0.1GA2, 2.0.2GA and latest Git master (2.1.0 2012-06-03)\r\n\r\nIssue may be related with the ticket TIMOB-2912\r\n\r\nFILE: app.js\r\n\r\n{code}\r\nTi.UI.setBackgroundColor('#fff');\r\n\r\nvar buggedWin = Ti.UI.createWindow({\r\n\ttitle: 'Bugged'\r\n});\r\n\r\nvar webView = Ti.UI.createWebView({\r\n\turl: 'local.html'\r\n});\r\n\r\nbuggedWin.add(webView);\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\ttitle: 'Main Window'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle: 'Open Window'\r\n});\r\n\r\nbutton.addEventListener('click', function(e) {\r\n\ttab1.open(buggedWin, { animated: true });\r\n});\r\n\r\nwin1.add(button);\r\n\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\twindow: win1,\r\n\ttitle: 'Main Window'\r\n})\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n{code}\r\n\r\n\r\nFILE: local.html\r\n\r\n{code}\r\n\r\n\r\n\t\r\n\t\tSample HTML File\r\n\t\r\n\t\r\n\t\t

This is a local HTML file.

\r\n\t\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Window content disappears when open, close and re-open again", "creator": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "environment": "Titanium SDK version(s): 2.0.1GA2, 2.0.2, 2.1.0\r\niPhone SDK version: 5.1", "comment": { "comments": [ { "id": "197025", "author": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Affected version is not only 2.1.0, 2.0.1GA2 and 2.0.2(GA) are also affected. Thanks.", "updateAuthor": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2012-06-04T10:49:01.000+0000", "updated": "2012-06-04T10:49:01.000+0000" }, { "id": "197455", "author": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I think it's related with TIMOB-9400 again.", "updateAuthor": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2012-06-06T02:55:40.000+0000", "updated": "2012-06-06T02:55:40.000+0000" }, { "id": "199597", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206200844\r\nTi Mobile SDK 2.1.0.v20120619172256 hash rd3a84b13\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-21T10:51:15.000+0000", "updated": "2012-06-21T10:51:15.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }