Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5768] iOS: Black bar added over navBar when rotating back from full screen

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-05T13:20:02.000+0000
Affected Version/sRelease 1.7.3, Release 1.8.0
Fix Version/sSprint 2011-45, Release 1.8.0.1
ComponentsiOS
Labelsmodule_orientation, qe-testadded
ReporterAlan Leard
AssigneeBlain Hamon
Created2011-10-17T07:50:04.000+0000
Updated2014-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

FileDateSize
navstatus.png2011-10-17T09:44:26.000+000016823

Comments

  1. Eric Merriman 2011-10-17

    Alan mentions he used 1.7.3.v20111013094213.
  2. Eric Merriman 2011-10-17

    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.
  3. Stephen Tramer 2011-11-10

    Blain is working on a bug which fixes this.
  4. Alan Leard 2011-11-10

    Is there a ticket number for that bug?
  5. Stephen Tramer 2011-11-10

    He has linked all of the relevant bugs together.
  6. Michael Pettiford 2011-12-08

    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
  7. Wilson Luu 2012-01-05

    Reopening bug to add tag.
  8. Wilson Luu 2012-01-05

    Added tag

JSON Source