Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13068] Ti.UI.iPad.SplitWindow doesn't open TabGroups used as master or detail views

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.2
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2013-03-14T21:13:35.000+0000
Updated2018-02-28T20:03:22.000+0000

Description

problem

When assigning components to the masterView and detailView of the Ti.UI.iPad.SplitWindow component, Windows open automatically, but TabGroups require you to execute the open() call manually.

test case

The code below will render the Ti.UI.iPad.SplitWindow, but won't show the tabgroup in the masterView. Uncomment the noted line below and it will work.
var tabgroup = Ti.UI.createTabGroup();
var tab1 = Ti.UI.createTab({
	title: 'tab 1',
	window: Ti.UI.createWindow({
		backgroundColor: '#f00',
		title: 'tab 1'	
	})
});
var tab2 = Ti.UI.createTab({
	title: 'tab 2',
	window: Ti.UI.createWindow({
		backgroundColor: '#0f0',
		title: 'tab 2'	
	})
});

tabgroup.addTab(tab1);
tabgroup.addTab(tab2);

// uncomment the line below and the tabgroup will appear 
// tabgroup.open();

var split = Ti.UI.iPad.createSplitWindow({
	masterView: tabgroup,
	detailView: Ti.UI.createWindow({
		backgroundColor: '#00f'
	})
});
split.open();

Comments

No comments

JSON Source