{ "id": "84773", "key": "TIMOB-7118", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-02-09T23:48:52.000+0000", "created": "2012-01-11T16:45:48.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14522", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "84600", "key": "TIMOB-7034", "fields": { "summary": "iOS: Button - when both the \"backgroundImage\" and the \"backgroundSelectedImage\" are set, the customized white splash should be disabled.", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14600", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84600", "key": "TIMOB-7034", "fields": { "summary": "iOS: Button - when both the \"backgroundImage\" and the \"backgroundSelectedImage\" are set, the customized white splash should be disabled.", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-09T23:48: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": "h4. DESCRIPTION\r\nWhen both the \"backgroundImage\" and the \"backgroundSelectedImage\" are set in iOS button, the customized button won't change from one to the other. I added a click event to see if the event is being fired, and it's fired just fine, but you won't see the animation. \r\n\r\nh4. Repro Steps:\r\nStep 1: add the attached image to your Resources folder\r\nStep 2: run the code below\r\nStep 3: click the button\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow(); \r\n\r\nvar button = Ti.UI.createButton({\r\n width:207, \r\n height:80, \r\n top:0, \r\n left:0,\r\n backgroundColor:'#000',\r\n color:'#000',\r\n backgroundSelectedImage:'testButton2.png',\r\n backgroundImage: 'testButton.png',\r\n});\r\n\r\nbutton.addEventListener('click',function(){\r\n\tTi.API.info('clicked button');\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n", "attachment": [ { "id": "25014", "filename": "testButton.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-01-11T16:46:21.000+0000", "size": 3541, "mimeType": "image/png" }, { "id": "25015", "filename": "testButton2.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-01-11T16:46:21.000+0000", "size": 3859, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Button - Animation not working when both the \"backgroundImage\" and the \"backgroundSelectedImage\" are set", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "XCode4.2, iOS5 Simulator", "comment": { "comments": [ { "id": "179671", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified that the issue is fixed by TIMOB-7034.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-17T15:53:04.000+0000", "updated": "2012-01-17T15:53:04.000+0000" }, { "id": "180190", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "closing based on Max's comments and linked bug being closed.", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T11:12:02.000+0000", "updated": "2012-01-23T11:12:02.000+0000" }, { "id": "180191", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. This bug is a duplicate of TIMOB-7034", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T11:12:25.000+0000", "updated": "2012-01-23T11:12:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }