{ "id": "167631", "key": "TIMOB-24700", "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": null, "resolutiondate": null, "created": "2017-05-15T19:47:19.000+0000", "priority": null, "labels": [ "android", "button", "engSchedule", "regression" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-07-30T16:33:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "When a button is 44dp tall, a 16dp title appears centered in the button, as it should. When a button is 33dp tall, 4 pixels of the same title are cropped at the bottom. The entire title seems shifted down in the button, as if it is not vertically centered. It appears that the internal label has been given a top, or the button has some top padding that it shouldn't have.\r\n\r\nThis button appeared correctly in SDK 5.1.x.\r\n\r\nSample code:\r\n{code:java}\r\nvar win=Ti.UI.createWindow({backgroundColor: '#fff'});\r\nvar btn1=Ti.UI.createButton({ width:200,\r\n {font:{fontSize:'16dp'},\r\n title:'Refresh',\r\n height:'44dp'\r\n borderWidth:1,\r\n borderRadius:5 });\r\nvar btn2=Ti.UI.createButton({ width:200,\r\n {font:{fontSize:'16dp'},\r\n title:'Refresh',\r\n height:'33dp'\r\n borderWidth:1,\r\n borderRadius:5 });\r\nwin.add(btn1);\r\nwin.add(btn2);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: button has too much top padding, chops off bottom of title (regression)", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "Android 4.4.2\r\nTi SDK 5.5.1 (worked with SDK 5.1.x)", "comment": { "comments": [ { "id": "419784", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I can validate the issue, With the code below,\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#fff'\r\n});\r\n\r\nvar btn1 = Ti.UI.createButton({\r\n top: 20,\r\n width : 200,\r\n\r\n font : {\r\n fontSize : '16dp'\r\n },\r\n\r\n title : 'Refresh',\r\n\r\n height : '44dp',\r\n\r\n borderWidth : 1,\r\n\r\n borderRadius : 5\r\n});\r\n\r\nvar btn2 = Ti.UI.createButton({\r\n top: 150,\r\n width : 200,\r\n\r\n font : {\r\n fontSize : '16dp'\r\n },\r\n\r\n title : 'Refresh',\r\n\r\n height : '33dp',\r\n\r\n borderWidth : 1,\r\n\r\n borderRadius : 5\r\n});\r\n\r\nwin.add(btn1);\r\n\r\nwin.add(btn2);\r\n\r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-05-16T15:36:11.000+0000", "updated": "2017-05-16T15:36:11.000+0000" }, { "id": "444664", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Can we get some traction on this issue? It's still a problem in Ti SDK 7.0.0. Also note that there seems to be some implicit left & right padding that was added at the same time, that we need to be able to either eliminate or reduce.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2018-12-17T22:06:38.000+0000", "updated": "2018-12-17T22:06:38.000+0000" }, { "id": "450161", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Also, similar to TIMOB-16512 and referenced in TIMOB-25594 and TIMOB-17258, we need to be able to control the internal padding (left, right, top, bottom) of each button independently from Titanium code (not styles).", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2019-07-30T16:33:43.000+0000", "updated": "2019-07-30T16:33:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }