Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2423] Label not showing on buttons with background images

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:04.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M09
ComponentsiOS
Labels1.5.0, background, button, ios, label, release-1.6.0
ReporterJames Wragg
AssigneeReggie Seagraves
Created2011-04-15T03:19:18.000+0000
Updated2011-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);

Comments

  1. Richard Venneman 2011-04-15

    I can confirm this.

  2. Stephen Tramer 2011-04-15

    Tested 1.6.0RC1. Plausible bug, committed to bugtests.

JSON Source