Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Label on Button on 1.5.0 (29/11) Error

Hi,

I'm creating an app for iPad, tested in 3.2.2 and 4.2.1

I use a custom button to create an iPhone style button.

var btn = Ti.UI.createButton({
        backgroundImage:'img/btn.png',
        backgroundSelectedImage:'img/btn_o.png',
        height:57,
        width:200
    });
var lblBtn = Ti.UI.createLabel({
        color:'#fff',
        font:{fontSize:12,fontWeight:'bold'},
        shadowColor:'#000',
        shadowOffset:{x:1,y:1},
        right:0,
        left:0,
        height:'auto',
        text:'My button',
        textAlign:'center'
    })
btn.add(lblBtn);

This code reproduce a button with a title with shaddow.
This work perfectly in 1.4.3, but NOT in 1.5.0.

If my image is opaque i don't see this label, but if has an opacity, i see the label below the backgroundImage.

Anyone can help me?

— asked November 30th 2010 by Adriano Paladini
0 Comments

2 Answers

  • Escritorio

    Please state your mobile platform and, when posting questions, please remember to tag your question.

    Thanks

    — answered November 30th 2010 by Paul Dowsett
    permalink
    0 Comments
  • Now on final version of 1.5.0 and on 1.5.1 and 1.6.0 this bug was fixed.

    — answered December 23rd 2010 by Adriano Paladini
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.