{ "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.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:23.000+0000", "updated": "2011-04-15T02:34:23.000+0000" }, { "id": "123806", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Also see Remove Views test. Orange WebView should respect border\nradius.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:23.000+0000", "updated": "2011-04-15T02:34:23.000+0000" }, { "id": "183256", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Use this code to test \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:\"white\",\r\n\ttitle:\"Window1\"\r\n})\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tbackgroundColor:\"white\",\r\n});\r\n\r\n//Opaque BG\r\nvar myView1 = Ti.UI.createView({\r\n width: 100,\r\n height: 100,\r\n top:10,\r\n backgroundColor:\"#ff00\",\r\n borderWidth: 5,\r\n borderColor: \"green\",\r\n borderRadius:10\r\n});\r\n\r\n//Semi transparent BG\r\nvar myView2 = Ti.UI.createView({\r\n width: 100,\r\n height: 100,\r\n top:120,\r\n backgroundColor:\"#af00\",\r\n borderWidth: 5,\r\n borderColor: \"green\",\r\n borderRadius:10\r\n});\r\n\r\n//Transparent Border, Semitransparent BG\r\nvar myView3 = Ti.UI.createView({\r\n width: 100,\r\n height: 100,\r\n top:230,\r\n backgroundColor:\"#af00\",\r\n borderWidth: 5,\r\n borderColor: \"#0000\",\r\n borderRadius:10\r\n});\r\n\r\n//NO BG\r\nvar myView4 = Ti.UI.createView({\r\n width: 100,\r\n height: 100,\r\n top:340,\r\n borderWidth: 5,\r\n borderColor: \"green\",\r\n borderRadius:10\r\n});\r\n\r\n//Transparent BG\r\nvar myView5 = Ti.UI.createView({\r\n width: 100,\r\n height: 100,\r\n top:450,\r\n borderWidth: 5,\r\n borderColor: \"green\",\r\n borderRadius:10,\r\n backgroundImage:\"transparent.png\"\r\n});\r\n//ImageView with single pixel border\r\nvar imageView1 = Titanium.UI.createImageView({\r\n url: \"KS_nav_ui.png\",\r\n width: 100,\r\n height: 100,\r\n top: 560,\r\n borderWidth: 1,\r\n borderColor: \"green\",\r\n borderRadius: 5\r\n});\r\n//ImageView with fat border\r\nvar imageView2 = Titanium.UI.createImageView({\r\n url: \"KS_nav_ui.png\",\r\n width: 100,\r\n height: 100,\r\n top: 670,\r\n borderWidth: 5,\r\n borderColor: \"green\",\r\n borderRadius: 5\r\n});\r\n//ImageView with transparent border\r\nvar imageView3 = Titanium.UI.createImageView({\r\n url: \"KS_nav_ui.png\",\r\n width: 100,\r\n height: 100,\r\n top: 780,\r\n borderWidth: 5,\r\n borderColor: \"#0000\",\r\n borderRadius: 5\r\n});\r\nscrollView.add(myView1);\r\nscrollView.add(myView2);\r\nscrollView.add(myView3);\r\nscrollView.add(myView4);\r\nscrollView.add(myView5);\r\nscrollView.add(imageView1);\r\nscrollView.add(imageView2);\r\nscrollView.add(imageView3);\r\n\r\n\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-15T12:54:48.000+0000", "updated": "2012-02-15T13:17:56.000+0000" }, { "id": "183408", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-2099 is for Labels, but this border issue affects any view type.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-16T09:58:10.000+0000", "updated": "2012-02-16T09:58:45.000+0000" }, { "id": "202956", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears to be fixed by TIMOB-9469", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T10:52:28.000+0000", "updated": "2012-07-12T10:52:28.000+0000" }, { "id": "214422", "author": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with :\r\nMobile sdk-2.2.0.v20120810080115\r\nTitanium Studio, build: 2.1.1.201207271312\r\nDevice:\r\nGalaxy S III Android version 4.0.4\r\n", "updateAuthor": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T13:58:48.000+0000", "updated": "2012-08-14T13:58:48.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }