Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6676] iOS: modalTransitionStyle loses barImage on animation

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-23T16:20:27.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0.1
Fix Version/sSprint 2011-50, Release 1.7.6, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsn/a
ReporterAlan Leard
AssigneeBlain Hamon
Created2011-12-14T17:44:09.000+0000
Updated2014-06-19T12:43:33.000+0000

Description

Issue

When using modalTransitionStyle the bar image disappears and just shows the bar color during the flip animation.

Code Sample

var tabGroup = Ti.UI.createTabGroup();

var win1 = Titanium.UI.createWindow({   
  title:'1', 
  backgroundColor:'#fff',
  barImage:'navbar.png',
  barColor: '#AAA'
}); 

var button = Ti.UI.createButton({
	title:'Open',
	width:100, 
	height:40
});

win1.add(button);
var tab1 = Titanium.UI.createTab({   
  icon:'KS_nav_views.png',  
  title:'1', 
  window:win1
});  

tabGroup.addTab(tab1);

button.addEventListener('click', function(){
	var win = Ti.UI.createWindow({
		barImage:'navbar.png', 
		barColor: '#AAA'
	});
	var close = Ti.UI.createButton({
		title:'close',
		width:100,
		height:40
	});
	close.addEventListener('click', function(){
		win.close();
	});
	win.add(close);
	win.open({
		modal: true, 
    	modalTransitionStyle: Ti.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, 
    	modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_FULLSCREEN
    });
});
tabGroup.open();

Repro Steps

1. Drop code into app.js. 2. Download attached barImage asset and drop into resources folder. 3. Run app using 1.7.5. 4. Click 'Open' 5. See Red bar color appear during animation.

Attachments

FileDateSize
navbar.png2011-12-14T17:44:09.000+000011044

Comments

  1. Michael Pettiford 2011-12-19

    Tested on Ti Studio 1.0.7.201112152014 Ti Mob 1.8.0.1.RC3 OSX Lion iPhone 4.3s sim, iPhone 4S OS 5.0, iPa2 2 OS 4.3.5 Expected behavior of modal transition not losing bar image is shown after running sample code *Note keeping open to close against 1.9.0
  2. Michael Pettiford 2012-01-11

    Closing this issue as fixed against 1.8.0.1

JSON Source