Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5724] Opacity does not work for labels

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-10-12T13:59:55.000+0000
Affected Version/sn/a
Fix Version/sSprint 2011-41, Release 1.8.0
ComponentsAndroid
Labelsmodule_label, qe-testadded
ReporterAllen Yeung
AssigneeAllen Yeung
Created2011-10-12T12:05:25.000+0000
Updated2014-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)

Comments

  1. Don Thorp 2011-10-12

    Review, test, and merge.
  2. Eric Merriman 2011-12-21

    Added component
  3. Eric Merriman 2011-12-21

    Verified fixed with SDK: 1.8.0.1.v20111220190134 on Galaxy tab 10.1 (v8) and LG Slate (rhino). Opening parity bug for iOS.

JSON Source