Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11704] iOS: Orientation - The second window in landscape closes with bottom up animation in a tab.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-11-08T19:52:45.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2012 Sprint 23 API, 2012 Sprint 23
ComponentsiOS
Labelsqe-ios100112
ReporterAnshu Mittal
AssigneeVishal Duggal
Created2012-11-08T10:01:08.000+0000
Updated2014-06-19T12:43:08.000+0000

Description

The second window in landscape closes with bottom up animation in a tab. This is regression since the issue does not occur in 2.1.4, 2.1.3 GA and 2.1.2GA Steps to reproduce: 1. Create an app using the code below. 2. launch the app. Click 'win2'. The second window opens in landscape mode. 3. Click on Tab1 Actual: The second window closes with bottom up animation to reveal the first window. Expected: The second window should close normally without any animation.

Titanium.UI.setBackgroundColor('#000');

var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff',
    navBarHidden: false,
    tabBarHidden: true
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});

var b1 = Titanium.UI.createButton({
	title:'Win 2',
	height:40,
	width:200,
	top:30
});

win1.add(b1);

b1.addEventListener('click', function(e)
{
    var w = Titanium.UI.createWindow({
	fullscreen:true,
	//url:'new_win.js',
	barColor:'#111',
	orientationModes:[Titanium.UI.LANDSCAPE_LEFT]
    });
    
    tab1.open(w);
});

tabGroup.addTab(tab1);  
tabGroup.open();

Comments

  1. Vishal Duggal 2012-11-08

    This is not a regression. This is the expected behavior change to avoid the issue reported in TIMOB-11219.
  2. Vishal Duggal 2012-11-08

    This change in behavior is caused by the change made to fix TIMOB-11219. This is the new expected behavior when switching from full screen windows to avoid race conditions.
  3. Eric Merriman 2013-03-04

    Closing based on comments above

JSON Source