[TIMOB-11219] iOS: Black bar starts appearing below navBar when orientation changed between opening and closing of a window.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-17T20:46:51.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 21 API, 2012 Sprint 21 |
Components | iOS |
Labels | api, orientation, qe-ios090112, qe-testadded, release-note |
Reporter | Shyam Bhadauria |
Assignee | Vishal Duggal |
Created | 2012-10-01T07:20:50.000+0000 |
Updated | 2012-12-04T20:03:11.000+0000 |
Description
This is a regression. It is working fine with 2.1.2GA on iOS 6.
This is only occurring on iOS 6 ipad. Working fine on iOS 5.1 ipad with 2.1.3.v20120928203111.
Steps to reproduce:
1. Use the code below -
Titanium.UI.setBackgroundColor('#000');
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff',
navBarHidden: false,
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
var b1 = Titanium.UI.createButton({
title:'Win 2',
});
win1.add(b1);
b1.addEventListener('click', function(e)
{
var w = Titanium.UI.createWindow({
fullscreen:true,
barColor:'#111',
orientationModes:[Titanium.UI.LANDSCAPE_LEFT]
});
tab1.open(w);
});
tabGroup.addTab(tab1);
tabGroup.open();
2. Run the app and rotate device to landscape mode.
3. Click the button 'Win 2'
4. Rotate the device to portrait mode.
5. Click the nav button 'Tab 1'.
Expected result:
2. A tabgroup with a button 'win 2' should be displayed. Window should be rotated to landscape mode.
3. A new black window should get opened in the tab.
4. The black window should remain in landscape mode.
5. The black window should get closed and older white window should be displayed with no black bar below navbar.
Actual result:
2. A tabgroup with a button 'win 2' gets displayed. Window gets rotated to landscape mode.
3. A new black window gets opened in the tab.
4. The black window remains in landscape mode.
5. The black window gets closed and older white window gets displayed with a black bar below navbar.
This black bar below navbar should not get displayed. Snapshots attached.
Attachments
File | Date | Size |
---|---|---|
iOS 5 - 2.1.3.v20120928203111.png | 2012-10-01T08:26:54.000+0000 | 24767 |
iOS 6 - 2.1.2GA.png | 2012-10-01T08:26:54.000+0000 | 73383 |
iOS 6 - 2.1.3.v20120928203111.png | 2012-10-01T08:26:54.000+0000 | 73671 |
Tested with iPad 3 6.0 with 2.1.3.v20120915120319 still see the issue.
Vishal, thoughts?
Not a regression. Occurs on 2.1.2 GA against 5.1 iPAD sim. Removing regression and qe-io6 labels
Tested with: Titanium Studio, build: 2.1.2.201208301612 Titanium Studio, SDK: 2.1.3.v20120928203111 iPad1 ios 5.1.1 The issue occurs after Win2 is open and then the device is rotated to any mode but left landscape, and Tab1 is pressed.
Pull pending https://github.com/appcelerator/titanium_mobile/pull/3211
Assuming this should be merged to 3.0.0. Please remove the label if that isn't the case.
3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3270
Closing as fixed. Tested and verified with: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, build: 3.0.0.v20121130200208 Devices: iPad mini iOS 6.0.1 iPhone5 iOS 6.0