Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7455] iOS : Window/BarImage - iOS 5+ Setting the bar image property on a window causes the windows bar color to become transparent

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-09T21:41:29.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sSprint 2012-02, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsqe-ios012312, regression
ReporterMichael Pettiford
AssigneeVishal Duggal
Created2012-01-27T14:48:04.000+0000
Updated2012-04-02T12:59:40.000+0000

Description

**Note this behavior did not occur on iOS devices running 4.3.x or in 1.8.0.1** Steps to reproduce: 1. Drop the code below into a new titanium mobile projects app.js
app.js
// 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'
});
var tab1 = Titanium.UI.createTab({
	icon: 'KS_nav_views.png',
	title: 'Tab 1',
	window: win1
});

var btn1 = Titanium.UI.createButton({
	color: '#000',
	title: 'Click me',
	font: {
		fontSize: 20,
		fontFamily: 'Helvetica Neue'
	},
	textAlign: 'center',
	width: 100,
	height: 50,
	top: 100

});

win1.add(btn1);

btn1.addEventListener('click', function() {
	var win_title = Titanium.UI.createWindow({
		title: 'See me?',
		barImage: 'KS_nav_ui.png',
		barColor: '#00f',
		backgroundColor: '#f00'
	});

	tab1.open(win_title);
})

tabGroup.addTab(tab1);

// open tab group
tabGroup.open();
2. Run the app on an iOS device 5.0+ 3. Press the Click me button Actual result: The newly openend window's barColor is transparent and one can see the window's background color, also the bar image is tiled Expected result: *See success.png attached* The newly open window's barColor is blue and the bar image is not tiled

Attachments

FileDateSize
success.PNG2012-01-27T14:48:04.000+000055348

Comments

  1. Stephen Tramer 2012-01-27

    Regression introduced by TIMOB-7425.
  2. Eric Merriman 2012-01-27

    Verified fixed with SDK 1.8.1.v20120127173134, using studio 1.0.8.201201262211 on: iPhone 4 (5.0.1) iPhone 4s (5.0.1) iPad 2 (5.0.1) iPad 1 (5.0.1) Also verified functions as expected on: iPhone 4 (4.3.5) iPad 2 (4.3.5)

JSON Source