Project: titanium
Issue TIMOB-19251: Windows: Tabs added using the TabGroup property are not rendered
Run the sample code below in the Windows emulator. (I used the Emulator 8.1 WVGA 4 inch 512MB.) RESULTS: Application does not display any content--only a black screen. OTHER INFO: The addTab method works. The console outputs that the tabs were added to the tabGroup object. {noformat} var win1 = Ti.UI.createWindow({ backgroundColor: 'blue', title: 'Blue' }); win1.add(Ti.UI.createLabel({text: 'I am a blue window.'})); var win2 = Ti.UI.createWindow({ backgroundColor: 'red', title: 'Red' }); win2.add(Ti.UI.createLabel({text: 'I am a red window.'})); var tab1 = Ti.UI.createTab({ window: win1, title: 'Blue' }), tab2 = Ti.UI.createTab({ window: win2, title: 'Red' }), tabGroup = Ti.UI.createTabGroup({ tabs: [tab1, tab2] }); //tabGroup.addTab(tab1); //tabGroup.addTab(tab2); tabGroup.tabs = [tab1, tab2]; tabGroup.setTabs([tab1, tab2]); tabGroup.open(); Ti.API.info(tabGroup.tabs); {noformat}
Story points: 5