{ "id": "62302", "key": "TIMOB-1670", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-25T16:07:10.000+0000", "created": "2011-04-15T02:58:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [], "issuelinks": [ { "id": "19391", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T22:23:45.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}

The following code does not show the title when a button in\r\ntoolbar also has an image. iOS 4, sdk 1.4 & newer 1.4.1\r\nbuild

\r\n

var win = Titanium.UI.currentWindow;

\r\n

// initialize to all modes win.orientationModes = [

\r\n
\r\nTitanium.UI.PORTRAIT,\r\nTitanium.UI.LANDSCAPE_LEFT,\r\nTitanium.UI.LANDSCAPE_RIGHT\r\n
\r\n

];

\r\n

var flexSpace = Titanium.UI.createButton({

\r\n
\r\nsystemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n
\r\n

});

\r\n

var change = Titanium.UI.createButton({

\r\n
\r\nimage:'button.png',\r\ntitle:'Change Toolbar',\r\n
\r\n

// style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED,

\r\n
\r\nwidth:100,\r\nheight:35\r\n
\r\n

});

\r\n

var revert = Titanium.UI.createButton({

\r\n
\r\ntitle:'Revert Toolbar',\r\nstyle:Titanium.UI.iPhone.SystemButtonStyle.DONE\r\n
\r\n

});

\r\n

// // Toolbar 2 // var toolbar2 =\r\nTitanium.UI.createToolbar({

\r\n
\r\nitems:[change,flexSpace,revert],\r\ntop:130,\r\nborderTop:false,\r\nborderBottom:false,\r\nbarColor:'#336699'\r\n
\r\n

});

\r\n

change.addEventListener('click', function()
\r\n{

\r\n
\r\ntoolbar2.borderTop = false;\r\ntoolbar2.borderBottom = false;\r\ntoolbar2.translucent = true;\r\ntoolbar2.barColor = '#000';\r\ntoolbar2.width = 300;\r\n\r\nchange.width = \"160\";\r\nchange.title = \"Change Toolbar (!)\";\r\n
\r\n

});

\r\n

revert.addEventListener('click', function()
\r\n{

\r\n
\r\ntoolbar2.borderTop = true;\r\ntoolbar2.borderBottom = true;\r\ntoolbar2.barColor = '#336699';\r\ntoolbar2.width = null;\r\n\r\nchange.width = 0; // 0 means auto\r\nchange.title = \"Change Toolbar\";\r\n
\r\n

});

\r\n

win.add(toolbar2);

{html}", "attachment": [ { "id": "18034", "filename": "button.png", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:58:57.000+0000", "size": 530, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Button image does not show title when button is in a toolbar", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209440", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot be reproduced from sample app in SDK 2.2.0.f9e938d, iPhone Sim 5.1.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T16:07:10.000+0000", "updated": "2012-07-25T16:07:10.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }