[TIMOB-10446] iOS: tabGroup child does not open when parent window is opened under certain conditions
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.0.2, Release 2.1.0, Release 2.0.1, Release 2.1.1, Release 2.1.2, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api, qe-ios082012, reprod |
Reporter | Dustin Hyde |
Assignee | Unknown |
Created | 2012-08-14T15:55:21.000+0000 |
Updated | 2018-02-28T20:03:58.000+0000 |
Description
tabGroup child does not open when parent window is opened under certain conditions.
This is not a regression. There is no log info.
This does not occur on MobileWeb.
This cannot be tested on Android due to TIMOB-10444.
Steps to Reproduce:
1. Run Code:
function createTabGroupObject() {
var tabGroupObject = {};
tabGroupObject.window = Ti.UI.createWindow({
backgroundColor : 'red'
});
tabGroupObject.tabGroup = Ti.UI.createTabGroup();
tabGroupObject.window.add(tabGroupObject.tabGroup);
tabGroupObject.addTabFromString = function(string) {
var tabWindow = Ti.UI.createWindow({
backgroundColor : 'green'
});
var tab = Ti.UI.createTab({
window : tabWindow,
title : string
});
tabGroupObject.tabGroup.addTab(tab);
tabGroupObject['tab' + string] = tab;
};
tabGroupObject.open = function() {
tabGroupObject.window.open();
// tabGroupObject.tabGroup.open(); // work-around to open tabGroup manually
};
return tabGroupObject;
}
var tabGroupObject = createTabGroupObject();
tabGroupObject.addTabFromString('Checkout');
tabGroupObject.addTabFromString('Return');
tabGroupObject.open();
Actual Result:
tabGroup does not open. Red window is visible. Work-around is to explicitly open the tabGroup.
Expected Result:
tabGroup should open when parent window is opened. Green tabGroup should be visible.
Note, this behavior does not occur with this simpler sample code:
var win = Ti.UI.createWindow({backgroundColor:'red'});
var tabGroup = Ti.UI.createTabGroup({backgroundColor:'green'});
win.add(tabGroup);
win.open();
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131