[TIMOB-4622] Window focus not firing in a navigation group
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-10-27T14:48:26.000+0000 |
Affected Version/s | Release 1.7.1 |
Fix Version/s | Release 1.8.0 |
Components | iOS |
Labels | n/a |
Reporter | Rick Blalock |
Assignee | Blain Hamon |
Created | 2011-07-08T08:12:54.000+0000 |
Updated | 2011-10-27T14:48:34.000+0000 |
Description
Window focus events do not fire on windows in a navigation group when navigating BACK using the auto-generated back button. Sample code below:
var win = Ti.UI.createWindow();
var rootWin = Ti.UI.createWindow();
rootWin.addEventListener('focus', function()
{
Ti.API.info("rootWin FOCUSED");
});
var btnOpenWin = Ti.UI.createButton({
title : "open new window",
width : 200,
height : 35
});
btnOpenWin.addEventListener('click', function()
{
var win2 = Ti.UI.createWindow();
navGroup.open(win2, {animated: true});
});
rootWin.add(btnOpenWin);
var navGroup = Ti.UI.iPhone.createNavigationGroup({
window: rootWin
});
win.add(navGroup);
win.open();
Pull request https://github.com/appcelerator/titanium_mobile/pull/338 pending.
Passed as expected on: iPod 3rd Gen 4.0.2 iPad 2 4.3.2 iPhone 4 4.2.10 SDK: version=1.8.0 timestamp=08/26/11 14:53 githash=8e978eb...