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?
2 Answers
-
Escritorio
Please state your mobile platform and, when posting questions, please remember to tag your question.
Thanks
-
Now on final version of 1.5.0 and on 1.5.1 and 1.6.0 this bug was fixed.