[TIMOB-5768] iOS: Black bar added over navBar when rotating back from full screen
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-05T13:20:02.000+0000 |
Affected Version/s | Release 1.7.3, Release 1.8.0 |
Fix Version/s | Sprint 2011-45, Release 1.8.0.1 |
Components | iOS |
Labels | module_orientation, qe-testadded |
Reporter | Alan Leard |
Assignee | Blain Hamon |
Created | 2011-10-17T07:50:04.000+0000 |
Updated | 2014-09-10T17:57:32.000+0000 |
Description
If tiapp.xml is set to portrait only and you run the code below which goes to a fullscreen window then back to a non-fullscreen window, a black bar appears on top of a portion of the navBar. Screenshot: http://screencast.com/t/QhDdHvLUXtN
<orientations device="iphone">
<orientation>Ti.UI.PORTRAIT</orientation>
</orientations>
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
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);
// open tab group
tabGroup.open();
Attachments
File | Date | Size |
---|---|---|
navstatus.png | 2011-10-17T09:44:26.000+0000 | 16823 |
Alan mentions he used 1.7.3.v20111013094213.
Was able to reproduce with SDK 1.7.2 GA and 1.7.3.v20111013094213. There has been some work on orientation in master, and 1.8.0.v20111014141415 exhibits similar, perhaps worse behavior. Please see attached screen shot.
Blain is working on a bug which fixes this.
Is there a ticket number for that bug?
He has linked all of the relevant bugs together.
Tested on Ti Studio 1.0.7.201112080131 Ti Mob SDK 1.8.0.1.v20111207180431 OSX Lion iPhone 4S OS 5.0.1 Expected behavior of no black bar being added is shown
Reopening bug to add tag.
Added tag