[TIMOB-5724] Opacity does not work for labels
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-10-12T13:59:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2011-41, Release 1.8.0 |
Components | Android |
Labels | module_label, qe-testadded |
Reporter | Allen Yeung |
Assignee | Allen Yeung |
Created | 2011-10-12T12:05:25.000+0000 |
Updated | 2014-06-19T12:44:23.000+0000 |
Description
Use the following app.js to reproduce:
var win = Ti.UI.createWindow({ backgroundColor:'#fff' });
var msg = {
container: Ti.UI.createView({ bottom:10, width:220, height:130, opacity:0.0}),
one: Ti.UI.createLabel({ text:'1 opacity', textAlign:'center', font:{fontFamily:'Helvetica Neue', fontWeight:'bold', fontSize:12}, color:'#333', opacity:1.0 }),
two: Ti.UI.createLabel({ top:0, height:32, text:'0.1 opacity', textAlign:'center', font:{fontFamily:'Helvetica Neue', fontWeight:'bold', fontSize:12}, color:'#333', opacity:0.1 }),
three: Ti.UI.createLabel({ bottom:0, height:30, text:'0.0 opacity', font:{fontFamily:'Helvetica Neue', fontSize:10}, color:'#333', opacity:0.0 })
};
msg.container.add(msg.one);
msg.container.add(msg.two);
msg.container.add(msg.three);
win.add(msg.container);
win.open();
This should display text with opacity of 1, .1, and 0. (The one with 0 opacity should be invisible)
Review, test, and merge.
Added component
Verified fixed with SDK: 1.8.0.1.v20111220190134 on Galaxy tab 10.1 (v8) and LG Slate (rhino). Opening parity bug for iOS.