[TIMOB-9359] iOS: Window content disappears when open, close and re-open again
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-06-08T17:07:34.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-11 API |
Components | iOS |
Labels | api, module_window, qe-testadded |
Reporter | Hidayet Dogan |
Assignee | Vishal Duggal |
Created | 2012-06-04T02:12:23.000+0000 |
Updated | 2012-07-11T10:16:40.000+0000 |
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).
Code has been tested with 2.0.1GA2, 2.0.2GA and latest Git master (2.1.0 2012-06-03)
Issue may be related with the ticket TIMOB-2912
FILE: app.js
Ti.UI.setBackgroundColor('#fff');
var buggedWin = Ti.UI.createWindow({
title: 'Bugged'
});
var webView = Ti.UI.createWebView({
url: 'local.html'
});
buggedWin.add(webView);
var win1 = Ti.UI.createWindow({
title: 'Main Window'
});
var button = Ti.UI.createButton({
title: 'Open Window'
});
button.addEventListener('click', function(e) {
tab1.open(buggedWin, { animated: true });
});
win1.add(button);
var tabGroup = Ti.UI.createTabGroup();
var tab1 = Ti.UI.createTab({
window: win1,
title: 'Main Window'
})
tabGroup.addTab(tab1);
tabGroup.open();
FILE: local.html
<!DOCTYPE html>
<html>
<head>
<title>Sample HTML File</title>
</head>
<body>
<p>This is a local HTML file.</p>
</body>
</html>
Affected version is not only 2.1.0, 2.0.1GA2 and 2.0.2(GA) are also affected. Thanks.
I think it's related with TIMOB-9400 again.
Closing issue Tested with Ti Studio build 2.1.0.201206200844 Ti Mobile SDK 2.1.0.v20120619172256 hash rd3a84b13 OSX Lion 10.7.3 iPhone 4S OS 5.1 The expected behavior is shown