Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2095] On 3.0.0 tabGroup.activeTab.close errors

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-02-07T21:28:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelstabgroup
ReporterJames Shrager
AssigneeShak Hossain
Created2013-02-07T17:08:49.000+0000
Updated2016-03-08T07:41:04.000+0000

Description

When using tabGroup.activeTab.open, you get the native slide in behaviour for the new window. However, when calling tabGroup.activeTab.close you do not get the slide out behaviour for the old window, it just closes the old window. This has started in 3.0.0 since updated.

Comments

  1. Carter Lathrop 2013-02-07

    Would you mind providing a test case that shows this error? From here I can confirm that this is indeed a bug and report to engineering. Thank you.
  2. Shak Hossain 2013-12-07

    Hi James, We have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. If so, please send us a test case so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it.
  3. Mostafizur Rahman 2013-12-09

    Hello, We tested this issue with the test code below. We can’t reproduce this issue in Ti SDK 3.1.3GA. Please install the latest SDK and test your app. If you continue to get error, please send us a test case with steps to reproduce. We will mark this a "can't reproduce" but feel free to open new issues as you need. We appreciate your reports.

    Testing Environment:

    Ti CLI 3.3.0 Titanium SDK: 3.1.3 and later iOS -Simulator -iPhone Retina 3.5 inch/iOS 7.0.0

    Test Code

       var tabGroup = Ti.UI.createTabGroup();
       
       var mywin = Titanium.UI.createWindow({
       	title : "Hello",
       	backgroundColor : '#fff',
       });
       var tab = Titanium.UI.createTab({
       	window : mywin,
       	title : 'Hello',
       	icon : 'KS_bg.png'
       });
       tabGroup.addTab(tab);
       mywin.containingTab = tab;
       
       var button = Ti.UI.createButton({
       	title : 'Button',
       
       });
       
       button.addEventListener('click', function() {
       	var pcatwin = Ti.UI.createWindow({
       		title : 'Select Category',
       		backgroundColor : '#fff'
       	});
       
       	var closeButton = Ti.UI.createButton({
       		title : 'closeButton',
       
       	});
       
       	closeButton.addEventListener('click', function() {
       		tabGroup.activeTab.close(pcatwin);
       	});
       
       	pcatwin.add(closeButton);
       	tabGroup.activeTab.open(pcatwin, {
       		animated : true
       	});
       
       });
       
       mywin.add(button);
       
       tabGroup.open();
       
       
    Thanks

JSON Source