[TIMOB-11735] BlackBerry: Titanium.UI.Window/Titanium.UI.View backgroundImage and backgroundColor exclude each other.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-08-08T22:18:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 16, 2013 Sprint 16 API |
Components | BlackBerry |
Labels | blackberry |
Reporter | Dan Tamas |
Assignee | Pedro Enrique |
Created | 2012-11-10T16:49:37.000+0000 |
Updated | 2017-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.
Out of curiosity, why is this a "Won't Fix", thnx
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
Oh, got it. Thank you Pedro :)
Closing ticket as it will not fix.