{ "id": "106850", "key": "AC-1973", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-04-08T20:11:22.000+0000", "created": "2012-12-20T09:40:15.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:54.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "As you can see from first screenshot, the content area is not being clipped by border if it has borderRadius property set unless i set borderRadius on the controls' parent too.\r\n\r\nFirst screenshot shows label with borderRadius set to 50, and parent view with borderRadius not set (or set to 0)\r\n\r\nThe second screenshot shows label with borderRadius set to 50, and parent view with borderRadius set to 1\r\n\r\nThis happens on my test device, but works as intended on Android emulator.\r\nIt also works as intended on Ti SDK 2.1.2\r\n\r\nHere is the code for a view containing the above:\r\n\r\n{code} \r\n//FirstView Component Constructor\r\nfunction FirstView() {\r\n\t//create object instance, a parasitic subclass of Observable\r\n\tvar self = Ti.UI.createView({\r\n\t\tbackgroundColor : \"gray\",\r\n\t\t//borderRadius:1, //Uncomment/comment this line to see the effects of borderRadius of label control bellow\r\n\t\tborderWidth : 2\r\n\t});\r\n\r\n\t//label using localization-ready strings from /i18n/en/strings.xml\r\n\tvar label = Ti.UI.createLabel({\r\n\t\tcolor : '#000000',\r\n\t\ttext : String.format(L('welcome'), 'Titanium'),\r\n\t\theight : 'auto',\r\n\t\twidth : 'auto',\r\n\t\tborderRadius : 50,\r\n\t\tbackgroundColor : \"orange\",\r\n\t\tborderWidth : 5,\r\n\t\tborderColor : \"white\",\r\n\t\tfont : {\r\n\t\t\tfontSize : \"40dp\"\r\n\t\t}\r\n\t});\r\n\tself.add(label);\r\n\r\n\t//Add behavior for UI\r\n\tlabel.addEventListener('click', function(e) {\r\n\t\talert(e.source.text);\r\n\t});\r\n\r\n\treturn self;\r\n}\r\n\r\nmodule.exports = FirstView;\r\n{code} \r\n\r\n", "attachment": [ { "id": "34286", "filename": "device-2012-12-20-100155.png", "author": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-20T09:40:15.000+0000", "size": 40362, "mimeType": "image/png" }, { "id": "34287", "filename": "device-2012-12-20-100207.png", "author": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-20T09:40:15.000+0000", "size": 41920, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: borderRadius not clipping controls' content area", "creator": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK 2.1.4\r\nTi SDK 3.0.0\r\nTi SDK 3.0.1\r\n\r\nHTC One X", "comment": { "comments": [ { "id": "232125", "author": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "body": "My bad, this should have been put in Titanium Mobile section :/", "updateAuthor": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-20T09:44:15.000+0000", "updated": "2012-12-20T09:44:15.000+0000" }, { "id": "232137", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Adnan - on which device are you experiencing this issue? \nMight be device dependent. On Galaxy Nexus 4.2.1 I do see it correctly displayed.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-20T14:26:19.000+0000", "updated": "2012-12-20T14:26:19.000+0000" }, { "id": "232142", "author": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "body": "@Federico\n\nI'm using HTC One X with 4.1.2 JB (CM10 to be exact) on it.", "updateAuthor": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-20T15:34:10.000+0000", "updated": "2012-12-20T15:34:10.000+0000" }, { "id": "232317", "author": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just tried this on Samsung Galaxy S (Android 2.3 i believe) and on emulator with Android 4.1, and no problems in both cases :/\n\nI'm not sure if it's a device or OS dependent problem though.", "updateAuthor": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-21T08:15:51.000+0000", "updated": "2012-12-21T08:15:51.000+0000" }, { "id": "232855", "author": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "body": "Apparently there is a problem with hardware acceleration, which, if turned ON, causes this problem and if turned OFF, it causes some drop in performance while scrolling a view with multiple controls that have rounded corners.\n", "updateAuthor": { "name": "cotheer", "key": "cotheer", "displayName": "Adnan Travar", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-02T10:12:47.000+0000", "updated": "2013-01-02T10:12:47.000+0000" }, { "id": "246481", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-08T20:07:10.000+0000", "updated": "2013-04-08T20:07:10.000+0000" }, { "id": "281026", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:30:01.000+0000", "updated": "2013-11-24T22:30:01.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }