Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1647] Navigation Group on iPad does not destroy custom left & right nav buttons

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2011-04-21T18:03:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-16
ComponentsiOS
Labelsdefect, group, ios, ipad, nav
Reporterctredway
AssigneeJacob Relkin
Created2011-04-15T02:58:19.000+0000
Updated2012-02-09T10:55:25.000+0000

Description

Using 1.4 on 3.2 when a window sets a left & right nav button when that window is closed via the nav, those buttons are not destroyed from view. below code demonstrates.

// app.js //

var win1 = Ti.UI.createWindow({

backgroundColor: 'white',
title: 'Nav Group'

}); var label1 = Ti.UI.createLabel({

text: 'Open Child Window',
left: 10,
top: 10

}); win1.add(label1);

var group = Ti.UI.iPhone.createNavigationGroup({

window: win1

});

var main = Ti.UI.createWindow();
main.add(group);

main.open();

label1.addEventListener('click',function() {

var win2 = Ti.UI.createWindow({
    title: 'Child Window',
    backgroundColor: 'white'
}); 

var nextButton = Ti.UI.createButton({
    title: 'Next'
});

var backButton = Ti.UI.createButton({
    title: 'Back'
});

win2.rightNavButton = nextButton;

// win2.leftNavButton = backButton;

backButton.addEventListener('click',function() {
    group.close(win2);
});
group.open(win2);

});

Comments

  1. Blain Hamon 2011-04-15

    Watch https://github.com/appcelerator/titanium_mobile/tree/ios_window_refactor"> https://github.com/appcelerator/titanium_mobile/tree/ios_window_ref... for codefixes on this.

  2. Reggie Seagraves 2011-04-15

    Moving navigation issues to Sprint 16.

  3. Jacob Relkin 2011-04-21

    I could not reproduce this bug on the iPad using the latest SDK. Verified on Reggie's machine as well. Tested with 1.6.0 as well, the bug is simply not reproducible.
  4. Thomas Huelbert 2012-02-09

    closing as we are not able to reproduce using master (1.9.0 Feb 9 2012 09:46 rd47ce8a4)

JSON Source