{ "id": "91591", "key": "TIMOB-9055", "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": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13402", "description": "Sprint 2012-10 Core", "name": "Sprint 2012-10 Core", "archived": true, "released": true, "releaseDate": "2012-05-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-11T09:35:26.000+0000", "created": "2012-05-08T11:00:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "module_button", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17298", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "91282", "key": "TIMOB-9107", "fields": { "summary": "Android: Label is not centering vertically inside a button", "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": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-18T23:40:43.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 Description\r\nIn 1.7.6, when you centered the text in a button, you will get it in the center vertical and horizontal. With 2.1CI, the text will appear more close to the top.\r\n\r\nh4. Actual Results\r\nThe text is closer to the top\r\n\r\nh4. Expected results\r\nThe button should be in the center, either vertical and horizontal\r\n\r\nh4. Test Case\r\n1. Create a new mobile Project\r\n2. Paste this code:\r\n{code}\r\n\r\nvar winMain = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n\tfullscreen : false,\r\n\tnavBarHidden : true\r\n});\r\n\r\n\r\nvar logoutButton = Ti.UI.createButton({\r\n\ttitle : 'Logout',\r\n\tbackgroundColor:'orange',\r\n\t//backgroundImage:'none',\r\n\twidth : 60,\r\n\theight : 40,\r\n\ttop : 100,\r\n\tfont : {\r\n\t\tfontSize : 12,\r\n\t\tfontfamily : 'Helvetica Neue',\r\n\t\tfontWeight : 'bold'\r\n\t}\r\n});\r\nwinMain.add(logoutButton);\r\n\r\nwinMain.open();\r\n{code}\r\n3. Test in 1.7.6\r\n4. Test in 2.1CI\r\n\r\nh4. Extra info\r\nThe example can be seen in pic210.png for the 2.1CI, and in pic2_176.png for the 1.7.6\r\n\r\n\r\n", "attachment": [ { "id": "27586", "filename": "pic2_176.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-05-08T11:00:03.000+0000", "size": 17168, "mimeType": "image/png" }, { "id": "27585", "filename": "pic210.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-05-08T11:00:03.000+0000", "size": 17615, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: The text in a button is not centered, it's slightly up", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 2.1.0v20120504\r\nJavascript Engine: V8 \r\nPlatform & version: Android 2.3 \r\nDevice Details: Android emulator \r\nHost Operating System: OS X 10.7.3\r\nTitanium Studio version: 2.0", "comment": { "comments": [ { "id": "194431", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR ready: https://github.com/appcelerator/titanium_mobile/pull/2171", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T13:56:02.000+0000", "updated": "2012-05-10T13:56:02.000+0000" }, { "id": "195196", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v20120516181650 on LG Revolution 2.3.6", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-17T13:53:39.000+0000", "updated": "2012-05-17T13:53:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }