{ "id": "63055", "key": "TIMOB-2423", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11242", "name": "Release 1.6.0 M09", "archived": true, "released": true, "releaseDate": "2011-02-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:04.000+0000", "created": "2011-04-15T03:19:18.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "1.5.0", "background", "button", "ios", "label", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:04.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

When adding a label to a button that has a background image the\nlabel is not shown. Removing the background image on the button\nshows the label.
\nzIndex issue?

\n

Issue in the current 1.5.0 build.

\n

iPhone.

\n

example code:

\n

var button = Ti.UI.createButton({

\n
\nwidth: 215,\nheight: 47,\ncolor: '#fff',\nbackgroundImage: '../../images/big-button.png',\ntop: 215\n
\n

}); var buttonLabel = Ti.UI.createLabel({

\n
\ntext: 'Add a new search',\nwidth: 215,\nheight: 25,\nzIndex: 10,\ntextAlign: 'center',\ncolor: '#fff',\nshadowColor: '#333',\nshadowOffset: {x:1, y:1},\nfont: {\n    fontSize: 20,\n    fontWeight: 'bold'\n},\ntouchEnabled: false\n
\n

}); button.add(buttonLabel);

{html}", "attachment": [], "flagged": false, "summary": "Label not showing on buttons with background images", "creator": { "name": "jameswragg", "key": "jameswragg", "displayName": "James Wragg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jameswragg", "key": "jameswragg", "displayName": "James Wragg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128413", "author": { "name": "richardvenneman", "key": "richardvenneman", "displayName": "Richard Venneman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I can confirm this.

{html}", "updateAuthor": { "name": "richardvenneman", "key": "richardvenneman", "displayName": "Richard Venneman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:19.000+0000", "updated": "2011-04-15T03:19:19.000+0000" }, { "id": "128414", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested 1.6.0RC1. Plausible bug, committed to bugtests.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:20.000+0000", "updated": "2011-04-15T03:19:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }