{ "id": "167497", "key": "TIMOB-24667", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-11T01:41:04.000+0000", "created": "2017-05-08T11:19:53.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "borderRadius", "regression" ], "versions": [ { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-15T18:48:23.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": "Adding a borderRadius on a view won't clip the backgroundColor, so the result will be a square with a circle behind instead of a bordered circle. Please see screenshot.\r\n\r\nThis happens on android 4.1.x and 4.2.x, on 4.4.4+ works ok.", "attachment": [ { "id": "62189", "filename": "Screen Shot 2017-05-08 at 13.18.26.png", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-08T11:18:43.000+0000", "size": 17883, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: borderRadius doesn't clip the backgroundColor on android 4.1.x, 4.2.x on SDK 6+", "creator": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 4.1.x, 4.2.x\r\nTi SDK 6.0.3 (worked with SDK 5.5.x)", "closedSprints": [ { "id": 889, "state": "closed", "name": "2017 Sprint 10 SDK", "startDate": "2017-05-08T00:27:49.740Z", "endDate": "2017-05-22T00:27:00.000Z", "completeDate": "2017-05-22T02:41:01.011Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "419289", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please provide a sample code that regenerates the issue. We will test it. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-05-08T14:25:42.000+0000", "updated": "2017-05-08T14:25:42.000+0000" }, { "id": "419297", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi, thank you for the fast reply, here is how to replicate:\r\n\r\nFor a new Alloy project, put this in index.xml\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nadd this in index.tss:\r\n{code:css}\r\n\".roundedWithBorder\":{\r\n\twidth:100,\r\n\theight:100,\r\n\tborderWidth:3,\r\n\tborderRadius:50,\r\n\tborderColor:'red',\r\n\tbackgroundColor:'pink'\r\n}\r\n{code}", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-08T14:46:41.000+0000", "updated": "2017-05-08T14:47:44.000+0000" }, { "id": "419299", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey Dan, I moved it to Engineering, it looks valid. Your labels state that it's a {{regression}}, can you see in which Titanium SDK it used to work?\r\n\r\nTest-Case (classic):\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar roundedWithBorder = Ti.UI.createView({\r\n width: 100,\r\n height: 100,\r\n borderWidth: 3,\r\n borderRadius: 50,\r\n borderColor: 'red',\r\n backgroundColor: 'pink'\r\n});\r\n\r\nroundedWithBorder.add(Ti.UI.createLabel({\r\n text: 'Hello, World'\r\n}));\r\n\r\nwin.add(roundedWithBorder);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-08T15:56:29.000+0000", "updated": "2017-05-08T15:58:39.000+0000" }, { "id": "419300", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi, \r\nI jumped from 5.5.1 to 6.0.3, it was working ok with 5.5.1.", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-08T15:58:33.000+0000", "updated": "2017-05-08T15:58:33.000+0000" }, { "id": "419301", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Could it be this: https://github.com/appcelerator/titanium_mobile/pull/8851 ?", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-08T16:02:00.000+0000", "updated": "2017-05-08T16:02:00.000+0000" }, { "id": "419304", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Will be checked by the Android team asap. I also tried my above test-case and it indeed reproduces:\r\n- [Working on Android 7|https://abload.de/img/bildschirmfoto2017-050wug5.png]\r\n- [Not Working on Android 4.2|https://abload.de/img/bildschirmfoto2017-05xlu2w.png]", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-08T16:55:47.000+0000", "updated": "2017-05-08T16:55:47.000+0000" }, { "id": "419362", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9037", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-09T14:15:19.000+0000", "updated": "2017-05-09T14:15:19.000+0000" }, { "id": "419374", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9039", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-09T17:34:25.000+0000", "updated": "2017-05-09T17:34:25.000+0000" }, { "id": "419530", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for both master & backport PR.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-11T01:41:32.000+0000", "updated": "2017-05-11T01:41:32.000+0000" }, { "id": "419722", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in 6.1.0.v20170514022959.\r\n\r\nAdding a {{borderRadius}} on a view clips the {{backgroundColor}} as expected.\r\nClosing.\r\n\r\nStudio Ver: 4.9.0.201705110256\r\nSDK Ver: 6.1.0.v20170514022959\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.2\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.1\r\nTi CLI Ver: 5.0.13\r\nAlloy Ver: 1.9.11\r\nNode Ver: 6.10.1\r\nJava Ver: 1.8.0_101\r\nAndroid Emulator: Android 4.2.2, Android 4.1.1 & android 5.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-15T18:48:16.000+0000", "updated": "2017-05-15T18:48:16.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }