{ "id": "103692", "key": "AC-2099", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-05-08T20:47:53.000+0000", "created": "2012-10-19T23:54:32.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "SDK 3.0 has the option to use an image in a button. When this button is used as a navigation button it does not respect any settings in width and height. This scales the image in the button to the image it's original width, and the usual height of the navigation bar. Example:\r\n{code}\r\nvar win1 = Titanium.UI.createWindow();\r\n\r\nvar win2 = Titanium.UI.createWindow({\r\n backgroundColor : 'red',\r\n title : 'Red Window'\r\n});\r\n\r\nvar navBtn = Ti.UI.createButton({image: '/images/cart.png', width: 16, height: 16});\r\nvar btn2 = Ti.UI.createButton({image: '/images/cart.png', width: 16, height: 16});\r\n\r\nwin2.add(btn2);\r\nwin2.leftNavButton = navBtn;\r\n\r\nvar nav = Titanium.UI.iPhone.createNavigationGroup({\r\n window : win2\r\n});\r\n\r\nwin1.add(nav);\r\nwin1.open();\r\n{code}\r\n\r\n\"btn\" does respect the setting, where as \"navBtn\" does not... Attached is the icon used for experiment.\r\n", "attachment": [ { "id": "32837", "filename": "cart.png", "author": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-19T23:54:33.000+0000", "size": 10744, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: leftNavButton image width property is not set", "creator": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS, OSX, SDK 3.0.0v20121019140116", "comment": { "comments": [ { "id": "250674", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Jan,\n\nThe docs point out that the value for leftNavButton must be a view (http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Window-property-leftNavButton). Thus I have made a small example which shows that when leftNavButton is a view, the sizes for the image works as expected. \n\n{code}\nvar win1 = Titanium.UI.createWindow();\nvar win2 = Titanium.UI.createWindow({\n backgroundColor: 'red',\n title: 'Red Window'\n});\n\nvar win3 = Titanium.UI.createWindow({\n backgroundColor: 'blue',\n title: 'Blue Window'\n});\n\nvar btnView = Ti.UI.createView({\n\tbackgroundImage: 'cart.png',\n\twidth: 20,\n\theight: 20\n});\n\nbtnView.addEventListener('click', function(){\n nav.open(win3, {animated:true});\n});\n\nvar nav = Titanium.UI.iPhone.createNavigationGroup({\n window: win2\n});\n\nwin2.leftNavButton = btnView;\nwin1.add(nav);\nwin1.open();\n{code}\n\nGranted in order to get button-like feel to a custom leftNavButton you would need to custom create the border and on-click highlighting etc. So in terms of functionality, everything is up to date with the current docs. However if you would like to create a new feature request to allow the lefNavButton to include buttons as well as views then by all means create it and be sure to link it in the comments below and I will review and move along to engineering for them to take further action.\nThank you for bringing this to our attention,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T22:48:54.000+0000", "updated": "2013-05-07T22:48:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }