Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5788] iOS: Show backgroundImage in the toolbar while the toolbar is opaque

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-01-27T18:24:06.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sn/a
ComponentsiOS
Labelstbs-1.9.0
ReporterQing Gao
AssigneeVishal Duggal
Created2011-10-17T14:43:49.000+0000
Updated2017-03-13T20:20:54.000+0000

Description

The backgroundimage property of Titanium.UI.Toolbar is not shown when the Toolbar is set to opaque.

Repro Steps

1.put the attached png files into the images folder 2.run the example code below.
win = Ti.UI.createWindow({
	backgroundColor : '#fff',
	backgroundImage : 'images/background.png'

});
verticalOff = 0;

var mkToolBar = function(title) {
	var bar = Titanium.UI.createToolbar({
		items : [Ti.UI.createButton({
			title : 'test '+ title,
			width : 50,
			style: Ti.UI.iPhone.SystemButtonStyle.BORDERED
		})],
		top : verticalOff
	});
	
	verticalOff += bar.height + 2;
	return bar;
}

tb = mkToolBar('bg');
tb.backgroundImage = 'images/bar_bg.png'
win.add(tb);
win.open();

Associated Helpdesk Ticket

http://appc.me/c/APP-658713

Attachments

FileDateSize
background.png2011-10-17T14:51:50.000+000075415
bar_bg.png2011-10-17T14:43:49.000+000034180

Comments

  1. Vishal Duggal 2015-01-27

    Resolved as part of TIMOB-16503
  2. Lee Morris 2017-03-13

    Closing ticket as fixed.

JSON Source