[TIMOB-2423] Label not showing on buttons with background images
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M09 |
Components | iOS |
Labels | 1.5.0, background, button, ios, label, release-1.6.0 |
Reporter | James Wragg |
Assignee | Reggie Seagraves |
Created | 2011-04-15T03:19:18.000+0000 |
Updated | 2011-04-17T01:59:04.000+0000 |
Description
When adding a label to a button that has a background image the
label is not shown. Removing the background image on the button
shows the label.
zIndex issue?
Issue in the current 1.5.0 build.
iPhone.
example code:
var button = Ti.UI.createButton({
width: 215,
height: 47,
color: '#fff',
backgroundImage: '../../images/big-button.png',
top: 215
}); var buttonLabel = Ti.UI.createLabel({
text: 'Add a new search',
width: 215,
height: 25,
zIndex: 10,
textAlign: 'center',
color: '#fff',
shadowColor: '#333',
shadowOffset: {x:1, y:1},
font: {
fontSize: 20,
fontWeight: 'bold'
},
touchEnabled: false
}); button.add(buttonLabel);
I can confirm this.
Tested 1.6.0RC1. Plausible bug, committed to bugtests.