Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9359] iOS: Window content disappears when open, close and re-open again

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-06-08T17:07:34.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-11 API
ComponentsiOS
Labelsapi, module_window, qe-testadded
ReporterHidayet Dogan
AssigneeVishal Duggal
Created2012-06-04T02:12:23.000+0000
Updated2012-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>

Comments

  1. Hidayet Dogan 2012-06-04

    Affected version is not only 2.1.0, 2.0.1GA2 and 2.0.2(GA) are also affected. Thanks.
  2. Hidayet Dogan 2012-06-06

    I think it's related with TIMOB-9400 again.
  3. Michael Pettiford 2012-06-21

    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

JSON Source