[TIMOB-9435] iOS:TabGroup - Calling Window property of the active tab does not return the window object.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-06-07T08:52:36.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api, qe-ios060112 |
Reporter | Anshu Mittal |
Assignee | Neeraj Gupta |
Created | 2012-06-06T23:16:51.000+0000 |
Updated | 2017-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();
Closing ticket as duplicate.