Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9435] iOS:TabGroup - Calling Window property of the active tab does not return the window object.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2012-06-07T08:52:36.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi, qe-ios060112
ReporterAnshu Mittal
AssigneeNeeraj Gupta
Created2012-06-06T23:16:51.000+0000
Updated2017-03-09T21:29:00.000+0000

Description

Calling Window property of the active tab does not return the window object. This is not a regression. The issue occurs as far back as 1.8.2 Steps to Reproduce: 1. Create an application with the code below. 2. Launch the app. Actual: Application does not return window object but the app runs without error. It does not give any warning or error even in console. Expected: Should be able to return the window object successfully.
Titanium.UI.setBackgroundColor('#000');
var tabGroup = Titanium.UI.createTabGroup();

var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});

var label1 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 1',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win1.add(label1);

tabGroup.addTab(tab1);  


tabGroup.setActiveTab(0);
alert(tabGroup.activeTab.window);

tabGroup.open();

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as duplicate.

JSON Source