{ "id": "82331", "key": "TIMOB-5989", "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": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-27T10:15:55.000+0000", "created": "2011-11-04T09:12:55.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "api", "module_button", "parity", "qe-testadded", "release-note-2.1.0" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" }, { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-10T16:01:09.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4.Problem\r\nThe button's image attribute does not work as described in documentation \"the image to display on the button to the left of the title\". Image scales to fill the entire button background.\r\n\r\nh6.Titanium API - Image property\r\nhttp://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Button-object\r\n\r\nh6.Tested on\r\nAndroid Emulator v2.2 & Android LG Ally device v2.2.1\r\n\r\nh6.Repro sequence\r\n{code:title=app.js}\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Win 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar button = Titanium.UI.createButton({\r\n\ttop: 60,\r\n\ttitle : 'Hello',\r\n\twidth : '140',\r\n\theight : '40',\r\n\t//backgroundImage : 'button.png',\r\n\timage: 'button.png',\r\n\t//backgroundLeftCap:12,\r\n\t//backgroundTopCap:12,\r\n\t//textAlign: Titanium.UI.TEXT_ALIGNMENT_RIGHT\r\n});\r\n\r\nwin1.add(button);\r\n\r\nwin1.open();\r\n{code}\r\n\r\nh6.Associated HD ticket\r\nAPP-379158", "attachment": [ { "id": "24038", "filename": "Untitled.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-11-04T09:12:55.000+0000", "size": 18396, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: Button's image attribute behaves the same as the backgroundImage attribute", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": " Product: Mobile\r\n Titanium SDK: Mobile CI\r\n Platform OS: Android\r\n Platform OS Version: 2.3.3", "comment": { "comments": [ { "id": "175688", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Folks any updates on this issue? This means that we cant create any buttons with images. We are having to upgrade to 1.7.X or 1.8.X due to blocking bugs and now UI is broken. Any status on this would be greatly appreciated.", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-10T13:38:32.000+0000", "updated": "2011-12-10T13:38:32.000+0000" }, { "id": "176328", "author": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "body": "Is this a documentation bug for an iOS only feature, or would the Button's leftDrawable attribute potentially support this?", "updateAuthor": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-16T07:33:01.000+0000", "updated": "2011-12-16T07:33:01.000+0000" }, { "id": "176329", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We believe it a bug.", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-16T07:42:21.000+0000", "updated": "2011-12-16T07:42:21.000+0000" }, { "id": "178816", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe this is a parity issue. As far as I can tell, Android treats `image` and `backgroundImage` the same way. Documenting the current behavior for now. Already marked as a parity issue so we can see if this can be addressed.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T18:37:08.000+0000", "updated": "2012-01-10T18:37:43.000+0000" }, { "id": "189527", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "I see that this was scheduled to be fixed and then removed. Any update to this issue as to when/if it can be fixed?", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2012-04-02T13:04:24.000+0000", "updated": "2012-04-02T13:04:24.000+0000" }, { "id": "194415", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A modified test case is with the proper image and height:\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Win 1',\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar button = Titanium.UI.createButton({\r\n top: 60,\r\n title : 'Hello',\r\n width : '180',\r\n height : '80',\r\n //backgroundImage : 'KS_nav_ui.png',\r\n image: 'KS_nav_ui.png',\r\n// backgroundLeftCap:12,\r\n// backgroundTopCap:12,\r\n// textAlign: Titanium.UI.TEXT_ALIGNMENT_RIGHT\r\n});\r\n \r\nwin1.add(button);\r\n \r\nwin1.open();\r\n{code}\r\n\r\n", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T11:50:02.000+0000", "updated": "2012-05-10T11:50:02.000+0000" }, { "id": "199917", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified with:\r\nTitanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice: Samsung Galaxy tab (3.2)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T13:41:07.000+0000", "updated": "2012-06-23T13:41:07.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }