Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7926] Android: Window open event doesn't fire using tabgroup to open the window

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-03T17:21:07.000+0000
Affected Version/sRelease 1.8.1, Release 1.8.2
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsAndroid
Labelsmodule_tabgroup, qe-testadded
ReporterNikhil Sharma
AssigneeHieu Pham
Created2012-03-08T02:35:13.000+0000
Updated2013-12-10T05:59:46.000+0000

Description

Window open event doesn't get fired, using tabgroup to open the window.

Repro Steps

1. Run the below code. 2. The window open event doesn't get fired.
var tabGroup = Ti.UI.createTabGroup();

var win = Ti.UI.createWindow({ backgroundColor: '#fff', title: 'Win 1' });
tabGroup.addTab(Ti.UI.createTab({
    window: win,
    title: win.title
}));

win.addEventListener('open', function() {
    alert('win1 opened!');
});

tabGroup.open();

Comments

  1. Dustin Hyde 2012-03-15

    Closing as Fixed. SDK: 2.0.0.v20120315140247 Android: V8, Rhino Studio: 2.0.0.201203142055 OS: Snow Leopard Devices Tested: Emulator 2.2, Revolution 2.3.4, Xoom 3.2.1
       var tabGroup = Ti.UI.createTabGroup();
       
       var win = Ti.UI.createWindow({ backgroundColor: '#fff', title: 'Win 1' });
       
       tabGroup.addTab(Ti.UI.createTab({
           window: win,
           title: win.title
       }));
       
       var label = Ti.UI.createLabel({
       	text:'no window open event fired'
       });
       
       win.add(label);
       
       win.addEventListener('open', function() {
       	label.text = 'window open event fired';
           alert('win1 opened!');
       });
       
       tabGroup.open();
       
  2. Natalie Huynh 2012-05-03

    Open to update label
  3. Shameer Jan 2013-12-10

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5074

JSON Source