{ "id": "91282", "key": "TIMOB-9107", "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-05-16T17:25:02.000+0000", "created": "2012-05-03T11:18:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17298", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "91591", "key": "TIMOB-9055", "fields": { "summary": "Android: The text in a button is not centered, it's slightly up", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:11:27.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": "I can't quite pinpoint the problem, but the label is not centering vertically inside a button when you add a background image. This was not a problem in Ti 2.0. Here's some sample code:\r\n\r\nin tiapp.xml:\r\n{code}\r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\napp.js:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar buttonTest = Ti.UI.createButton({\r\n\theight:28,\r\n\twidth:200,\r\n\ttitle:'Button 1',\r\n\ttop:20,\r\n\tfont:{fontSize:12,fontWeight:'bold'},\r\n\tbackgroundImage:'/assets/button_background.png',\r\n});\r\n\r\nwin.add(buttonTest);\r\n\r\nwin.open();\r\n{code}\r\n\r\nI've attached the background image. When run on Android, it appears that the baseline of the text is at the button's vertical center. When run on iOS, it displays correctly.", "attachment": [ { "id": "27515", "filename": "button_background.png", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-05-03T11:18:21.000+0000", "size": 2048, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Label is not centering vertically inside a button", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "Ti 2.1 CI (5/3/12)(5/10/12)\r\nAndroid 2.2.2\r\nLG Optimus V", "comment": { "comments": [ { "id": "195025", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "Looks like this is probably a dupe of TIMOB-9055", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-05-16T11:15:48.000+0000", "updated": "2012-05-16T11:15:48.000+0000" }, { "id": "195118", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as dup. Looks like TIMOB-9055 was fixed in master on 5/11, so any CI build after that ought to include the fix if you want to test it against your app.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-16T17:29:24.000+0000", "updated": "2012-05-16T17:29:24.000+0000" }, { "id": "195192", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "I can confirm that TIMOB-9055 resolved my issue", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-05-17T13:23:14.000+0000", "updated": "2012-05-17T13:23:14.000+0000" }, { "id": "415091", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate and links to the related ticket have been provided above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:11:27.000+0000", "updated": "2017-03-22T22:11:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }