Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14361] iOS: Building an old (originally 2.x SDK) app on 3.1.1 SDK with retina is not filling the height

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2013-07-01T16:37:14.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 13
Componentsn/a
Labelsn/a
ReporterRadamantis Torres-Lechuga
AssigneeIngo Muschenetz
Created2013-06-25T17:04:32.000+0000
Updated2017-03-20T20:43:12.000+0000

Description

Building an old Titanium Application built with SDK 2.x (2.1.0), using 3.1.1 with Retina simulator, is not filling the entire height of the screen. *Steps to reproduce the issue* - Open Appcelerator Studio - Create a sample NON Alloy Application - Built with SDK 2.1.0 - Switch to Retina 4-inch simulator - Clean the project - Change to 3.1.1 SDK - Build again targeting the Retina 4-inch simulator - The app is not filling the entire height of the retina simulator *Sample code*

Titanium.UI.setBackgroundColor('#000');
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});
var label1 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 1',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win1.add(label1);

var win2 = Titanium.UI.createWindow({  
    title:'Tab 2',
    backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 2',
    window:win2
});

var label2 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 2',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win2.add(label2);

tabGroup.addTab(tab1);  
tabGroup.addTab(tab2);  

tabGroup.open();

Comments

  1. Leor Brenman 2013-06-26

    Bert claims that is soley due to the lack of an iPhone 5 splash screen and can be remedied by copying an iPhone 5 splash screen (e.g. from a 3.1.1 project) into the 2.1.1 project and it will work. I was able to reproduce using 2.1.3 SDK. I create a 2.1.3 non alloy project. I deleted the Default-568h@2x.png file (from the resource\iphone folder) and launched the app and it had the black letterbox. Then I put the Default-568h@2x.png file back and the app displayed full screen. I didnt bother upgrading to 3.1.1 since I could fix the problem in the original 2.1.x sdk build.
  2. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source