{ "id": "91596", "key": "TIMOB-9058", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13407", "description": "Sprint 2012-11 API", "name": "Sprint 2012-11 API", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-29T10:54:32.000+0000", "created": "2012-05-08T12:10:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_toolbar", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-09T14:06:52.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": "Toolbar doesn't show the full label text. Ti.UI.SIZE does not expend the label in the toolbar, label keeps being ellipsized even if I set the width to Ti.UI.FILL.\r\nh4. Repo Steps\r\n1. Run the below code in app.js\r\n2. You will see the toolbar label ellipsized. \r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : 'Bug Isolation',\r\n\tbackgroundColor : 'white',\r\n\tbarColor : '#0066CC',\r\n\tnavBarHidden : false,\r\n\ttabBarHidden : true\r\n});\r\n\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar tab = Ti.UI.createTab({\r\n\ttitle :'',\r\n\twindow : win\r\n});\r\n\r\n\r\n\r\nvar companyBar = Ti.UI.createToolbar({\r\n\titems:items,\r\n\ttop:'0dp',\r\n\tborderTop:true,\r\n\tborderBottom:true,\r\n\tbarColor:'#D6D6D6',\r\n\tright : '-6dp'\r\n});\r\nwin.add(companyBar);\r\n\r\nvar companyBarLabel = Ti.UI.createLabel({\r\n\tleft : '10dp',\r\n\ttext : 'Greenlight Towing Company',\r\n\tcolor : '#333333',\r\n\tfont : {fontSize : '14dp', fontWeight : 'bold'},\r\n\ttextAlign : 'left',\r\n\twidth : Ti.UI.FILL\r\n});\r\n\r\nvar companyBarButton = Ti.UI.createButtonBar({\r\n\tlabels : [{title:'New'}],\r\n\tstyle : Ti.UI.iPhone.SystemButtonStyle.BAR,\r\n\tbackgroundColor : '#848684',\r\n\tvisible : true\r\n});\r\n\r\ncompanyBarButton.addEventListener('click', function(){\r\n\talert('You Clicked Me!');\r\n})\r\n\r\nvar flexSpace = Titanium.UI.createButton({\r\n\tsystemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\nvar fixedSpace = Titanium.UI.createButton({\r\n\tsystemButton:Titanium.UI.iPhone.SystemButton.FIXED_SPACE,\r\n\twidth : '0dp'\r\n});\r\n\r\nvar items = [fixedSpace, companyBarLabel, flexSpace, companyBarButton, fixedSpace];\r\n\r\ncompanyBar.items = items;\r\ntabGroup.addTab(tab);\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Toolbar doesn't show the full label ", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS5\r\nTi.SDK 2.0.1.GA2", "comment": { "comments": [ { "id": "197458", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tested with Titanium SDK: 2.1.0.v20120605190238\r\nTested with Titanium  Studio: 2.1.0.201206041625\r\nDevice and Version: iPhone 4s(5.1)\r\n", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-06-06T03:56:51.000+0000", "updated": "2012-06-06T03:56:51.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }