{ "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\nvar win = Titanium.UI.currentWindow;
\r\n// initialize to all modes win.orientationModes = [
\r\nTitanium.UI.PORTRAIT,\r\nTitanium.UI.LANDSCAPE_LEFT,\r\nTitanium.UI.LANDSCAPE_RIGHT
\r\n
\r\n];
\r\nvar flexSpace = Titanium.UI.createButton({
\r\nsystemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
\r\n
\r\n});
\r\nvar change = Titanium.UI.createButton({
\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\nvar revert = Titanium.UI.createButton({
\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\nitems:[change,flexSpace,revert],\r\ntop:130,\r\nborderTop:false,\r\nborderBottom:false,\r\nbarColor:'#336699'
\r\n
\r\n});
\r\nchange.addEventListener('click', function()
\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\nrevert.addEventListener('click', function()
\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\nwin.add(toolbar2);