Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11735] BlackBerry: Titanium.UI.Window/Titanium.UI.View backgroundImage and backgroundColor exclude each other.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2013-08-08T22:18:00.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 16, 2013 Sprint 16 API
ComponentsBlackBerry
Labelsblackberry
ReporterDan Tamas
AssigneePedro Enrique
Created2012-11-10T16:49:37.000+0000
Updated2017-03-09T07:58:30.000+0000

Description

Setting *backgroundImage* and *backgroundColor* in the same time to the window will leave only the last in the code: This will show only the image:
var win = Ti.UI.createWindow({
	backgroundColor:'#f00',
	backgroundImage:'/sun.png'
});

win.open();
This will show only the red background:
var win = Ti.UI.createWindow({
	backgroundImage:'/sun.png',
	backgroundColor:'#f00'
});

win.open();
Exactly the same for Ti.UI.View.

Comments

  1. Dan Tamas 2013-08-09

    Out of curiosity, why is this a "Won't Fix", thnx
  2. Pedro Enrique 2013-08-09

    Hi Dan, In BlackBerry Cascades, the UI framework, there is no backgroundImage or backgroundColor property on UI components. There is only a "background" property, and this takes either a color or an image. Unlike iOS, here you can only specify one or the other. http://developer.blackberry.com/cascades/reference/bb__cascades__container.html#property-background
  3. Dan Tamas 2013-08-09

    Oh, got it. Thank you Pedro :)
  4. Lee Morris 2017-03-09

    Closing ticket as it will not fix.

JSON Source