{ "id": "169978", "key": "TIMOB-25379", "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": [], "resolution": null, "resolutiondate": null, "created": "2017-10-09T22:40:03.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "border", "engSchedule", "ios" ], "versions": [ { "id": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "issuelinks": [], "assignee": null, "updated": "2019-05-14T15:34:37.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Summary:*\r\nOn iOS, if you first set a view's \"borderWidth\" to zero and then set \"borderColor\" afterwards, then the view will display a \"1dp\" border anyways. The zero border width setting is not respected. Note that the order you set the properties is important. You must set \"borderColor\" -after- setting \"borderWidth\". This is not an issue for border widths >= 1.\r\n\r\n*Test Code:*\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({ backgroundColor: \"black\" });\r\nvar view = Ti.UI.createView(\r\n{\r\n\twidth: \"50%\",\r\n\theight: \"50%\",\r\n\tbackgroundColor: \"blue\",\r\n\tborderWidth: 0,\r\n});\r\nview.borderColor = \"yellow\";\r\nwindow.add(view);\r\nwindow.open();\r\n\r\nTi.API.info(\"@@@ borderWidth: \" + view.borderWidth);\r\n{code}\r\n\r\n*Work-Around:*\r\nYou can work around this issue by setting \"borderWidth\" after \"borderColor\" like this.\r\n\r\n{code:javascript}\r\nview.borderColor = \"yellow\";\r\nview.borderWidth = 1;\r\nview.borderWidth = 0;\r\n{code}\r\n\r\n*Notes:*\r\nThe border width must default to 1dp if the \"borderWidth\" property has not been assigned. This behavior is expected by Titanium developers here: [TIMOB-25374]", "attachment": [], "flagged": false, "summary": "iOS: Setting \"borderColor\" wrongly displays a border while \"borderWidth\" is zero", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }