[TIMOB-11704] iOS: Orientation - The second window in landscape closes with bottom up animation in a tab.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-11-08T19:52:45.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2012 Sprint 23 API, 2012 Sprint 23 |
Components | iOS |
Labels | qe-ios100112 |
Reporter | Anshu Mittal |
Assignee | Vishal Duggal |
Created | 2012-11-08T10:01:08.000+0000 |
Updated | 2014-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();
This is not a regression. This is the expected behavior change to avoid the issue reported in TIMOB-11219.
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.
Closing based on comments above