Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24103] Windows: Tabgroup disappears when navigating back from an opened window

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-11-30T23:34:17.000+0000
Affected Version/sRelease 6.0.0, Release 5.4.0, Release 5.5.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsqe-6.0.0
ReporterEwan Harris
AssigneeKota Iguchi
Created2016-11-04T14:49:59.000+0000
Updated2017-01-03T18:43:29.000+0000

Description

Description

*This is not a regression* When using the code below and navigating back from the opened window, the tabgroup in the initial view disappears and only the green window remains
var win = Ti.UI.createWindow({ backgroundColor: 'green'});
var win2 = Ti.UI.createWindow({ backgroundColor: 'pink'});
var tabGroup = Ti.UI.createTabGroup();
var acceptanceTab = Titanium.UI.createTab({
	title : 'Acceptance',
	window : win
});
var aboutTab = Titanium.UI.createTab({
	title : 'About'
});
tabGroup.addTab(acceptanceTab);
tabGroup.addTab(aboutTab);
var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];
var table = Ti.UI.createTableView({
  data: tableData
});
win.add(table);
table.addEventListener('click', function(){
	win2.open();
});
tabGroup.open();

Steps to reproduce

Add the code above to an existing app.js

Tap a tableview row

Press the Windows back button

Actual result

The tabgroup disappears

Expected result

Tabgroup should not disappear

Comments

  1. Kota Iguchi 2016-11-28

    https://github.com/appcelerator/titanium_mobile_windows/pull/897
  2. Samir Mohammed 2017-01-03

    Verified fix, was able to see the tab group after navigating back from an open window. *Environment*
       Mobile Emulator: 10.0.14393.0 1080p 6 inch 2gb
       
       Operating System
       Name                        = Microsoft Windows 10 Pro
       Version                     = 10.0.14393
       Architecture                = 64bit
       

    CPUs = 4

    Memory = 17034395648 Node.js Node.js Version = 4.4.4 npm Version = 2.11.3 Titanium SDK SDK Version =6.1.0.v20170103080657

JSON Source