{ "id": "91225", "key": "TIMOB-8956", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-12T22:00:28.000+0000", "created": "2012-05-02T16:11:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_view", "qe-testadded", "support" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17384", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "89859", "key": "TIMOB-8688", "fields": { "summary": "Android: Setting a border on a View inside a TableViewRow fills the entire View", "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 } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-13T08:07:03.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": "h2. Problem\r\n\r\nThe issue occurs when a view is created with a transparent background color, a border width and a border color. Instead of the background being transparent and the border being the specified color and width, the whole view is filled in with the border color.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript}\r\nvar btnView = Ti.UI.createView({\r\n left: 10, \r\n height: 300, \r\n width: 300,\r\n top: 10,\r\n backgroundColor: 'transparent',\r\n borderWidth: 2,\r\n borderColor: 'red'\t\r\n});\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n\r\nwin.add(btnView);\r\n\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: When a view backgroundColor is set to transparent, setting the border width and color fills in the whole view with the border color.", "creator": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android version 2.3.6, Samsung Galaxy S2 Phone", "comment": { "comments": [ { "id": "195598", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n \r\nvar view = Ti.UI.createView({\r\n left: 10, \r\n height: 300, \r\n width: 300,\r\n top: 10,\r\n backgroundColor: 'white',\r\n borderWidth: 20,\r\n borderColor: 'red' \r\n});\r\n \r\n \r\nvar b1 = Ti.UI.createButton({\r\n top: 350,\r\n title: \"backgroundColor=transparent\"\r\n});\r\nb1.addEventListener(\"click\", function(){\r\n view.backgroundColor = 'transparent';\r\n});\r\n \r\nvar b2 = Ti.UI.createButton({\r\n top: 430,\r\n title: \"backgroundColor=white\"\r\n});\r\nb2.addEventListener(\"click\", function(){\r\n view.backgroundColor = 'white';\r\n});\r\n \r\nvar b3 = Ti.UI.createButton({\r\n top: 510,\r\n title: \"borderRadius=30\"\r\n});\r\nb3.addEventListener(\"click\", function(){\r\n view.borderRadius=30;\r\n});\r\n\r\nvar b4 = Ti.UI.createButton({\r\n top: 590,\r\n title: \"borderRadius=10\"\r\n});\r\nb4.addEventListener(\"click\", function(){\r\n view.borderRadius=10;\r\n});\r\n \r\nvar b5 = Ti.UI.createButton({\r\n top: 670,\r\n title: \"borderRadius=0\"\r\n});\r\nb5.addEventListener(\"click\", function(){\r\n view.borderRadius=0;\r\n});\r\n \r\nwin.add(view);\r\nwin.add(b1);\r\nwin.add(b2);\r\nwin.add(b3);\r\nwin.add(b4);\r\nwin.add(b5);\r\n \r\nwin.open();\r\n{code}\r\n\r\nFor functional test, click the buttons to change the properties of the view and observe the change of the view.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T10:23:10.000+0000", "updated": "2012-05-25T11:40:09.000+0000" }, { "id": "195660", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2244", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T16:00:27.000+0000", "updated": "2012-05-22T16:00:27.000+0000" }, { "id": "196132", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/2244", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-25T12:28:16.000+0000", "updated": "2012-05-25T12:28:16.000+0000" }, { "id": "198994", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with SDK 2.1.0.v20120618102300", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T15:34:23.000+0000", "updated": "2012-06-18T15:34:23.000+0000" }, { "id": "202246", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue. \r\nBug still occurs on:\r\nTitanium Studio, build: 2.1.1.201207061909\r\nTitanium SDK: 2.2.0.v20120705160241\r\nDevices: Nexus S (4.0.4), Galaxy Nexus (4.0.4), Motorola Xoom (4.0.3)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-09T16:38:33.000+0000", "updated": "2012-07-09T16:38:33.000+0000" }, { "id": "202957", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can not reproduce with either the 2.1.X or master branches. Tested on Android Sim (2.2), Galaxy Nexus(4.0.2) and Motorola Xoom (4.0.3) with both V8 and Rhino", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T10:57:28.000+0000", "updated": "2012-07-12T10:57:28.000+0000" }, { "id": "213666", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK: 2.1.1.v20120727140110\r\nHTC EVO 4.0.3", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T15:27:34.000+0000", "updated": "2012-08-09T15:27:34.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }