{ "id": "61316", "key": "TIMOB-684", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-21T05:46:43.000+0000", "created": "2011-04-15T02:34:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_scrollview", "parity", "qe-review", "qe-testadded", "training" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15243", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "62731", "key": "TIMOB-2099", "fields": { "summary": "Android: border properties broken for Label", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "18737", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "93002", "key": "TIMOB-9469", "fields": { "summary": "Android: TiUIView does not clip children", "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 } } } }, { "id": "15515", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "82581", "key": "TIMOB-6139", "fields": { "summary": "Android: View: v8/rhino, cannot set the borderColor on a view, it is setting the entire view to the same color", "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 } } } }, { "id": "22533", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "104398", "key": "TIMOB-11667", "fields": { "summary": "iOS: Label - The view is out of the border.", "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": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-12-21T05:46: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": "{code}\r\n// In Android, the border around the image is not visible\r\n// I tried removing borderRadius property, but the issue still remains\r\n// It works on iPhone though\r\n\r\nvar imageView = Titanium.UI.createImageView({\r\n url: \"/path/to/image\",\r\n width: 280,\r\n height: 175,\r\n borderWidth: 1,\r\n borderColor: \"#ccc\",\r\n borderRadius: 5\r\n});\r\n\r\nTitanium.UI.currentWindow.add(imageView);\r\n\r\n// Workaround\r\n// Wrap the image view in another view and set its border properties\r\n// Set the width and height to be 2 pixels more than the width and height of the image view\r\n\r\nvar wrapperView = Titanium.UI.createView({\r\n width: 282,\r\n height: 177,\r\n borderWidth: 1,\r\n borderColor: \"#ccc\",\r\n borderRadius: 5\r\n});\r\n\r\nvar imageView = Titanium.UI.createImageView({\r\n url: \"/path/to/image\",\r\n width: 280,\r\n height: 175\r\n});\r\n\r\nwrapperView.add(imageView);\r\nTitanium.UI.currentWindow.add(wrapperView);\r\n{code}", "attachment": [ { "id": "25783", "filename": "transparent.png", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-15T12:53:48.000+0000", "size": 207, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Border properties are broken for ImageView", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123805", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}
WebView also suffers from the same problem.
Also see Remove Views test. Orange WebView should respect border\nradius.