Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5359] iOS: tabGroup navbar - navBar does not appear on the top

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2011-11-14T12:21:00.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-45, Release 1.8.0.1
ComponentsiOS
Labelsios, navbar, regression, tabgroup
ReporterKarol Pomaski
AssigneeStephen Tramer
Created2011-09-26T08:37:22.000+0000
Updated2012-01-11T14:36:46.000+0000

Description

Problem

In fullscreen window the navBar is not located on the top of the screen (it has an extra padding). REGRESSION - works fine on SDK 1.7.2

Reproducible steps

1. Execute the sample code 2. Press "Win2" button (the navBar is not on the top however it is a fullscreen window) 3. Press "Tab1" and change the orientation to landscape 4. Press "Win2" (on landscape the navBar is not on the top)

Sample Code

// 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'
    });
    
    tab1.open(w);
});

tabGroup.addTab(tab1);  


// open tab group
tabGroup.open();

Associated HelpDesk Ticket

http://appc.me/a/APP-751215

Attachments

FileDateSize
nav1.png2011-09-26T08:37:22.000+0000112022
nav2.png2011-09-26T08:37:22.000+0000114470

Comments

  1. Stephen Tramer 2011-11-14

    Tested against 1.8.0.1.5457cb3, iPhone Sim 5.0. Could not reproduce in this version; probably because Blain re-enabled setting the application frame on rotation.
  2. Michael Pettiford 2012-01-11

    Closing issue due being fixed/not being able to reproduce Tested with Ti Studio 1.0.8.201201101928 Ti Mob SDK 1.8.0.1 OSX Lion iPhone 4S OS 5.0.1, iPhone sim 4.3

JSON Source