{ "id": "164951", "key": "TIMOB-24203", "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": "2016-12-13T10:27:06.000+0000", "created": "2016-12-09T13:34:56.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "qe-6.1.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" }, { "id": "18322", "name": "Release 5.5.1", "archived": false, "released": true, "releaseDate": "2016-09-28" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-12-13T18:00:46.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When you use the borderStyle property on IOS on a textfield, the SDK wrap your textfield in a view. \r\nThe parent view keep the backgroundColor of the original textfield but the child has a white backgroundcolor.\r\n\r\nThe parent should use a backgroundColor transparent and the child the backgroundcolor of the orignal textfield\r\n\r\n\r\n{code:js}\r\n\".container\": {\r\n\tbackgroundColor: \"red\"\r\n}\r\n\r\n\"TextField\": {\r\n\tborderStyle: Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n\twidth: 200,\r\n\theight: 100,\r\n\tbackgroundColor: 'green'\r\n}\r\n\r\n\r\n\t\r\n\t\t \r\n\t\r\n\r\n{code}", "attachment": [ { "id": "61041", "filename": "Simulator Screen Shot 9 déc. 2016 14.29.39.png", "author": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-09T13:33:28.000+0000", "size": 24493, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: TextField ignores backgroundColor when borderStyle set", "creator": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 6.0.0", "closedSprints": [ { "id": 770, "state": "closed", "name": "2016 Sprint 25 SDK", "startDate": "2016-12-03T01:53:07.491Z", "endDate": "2016-12-17T01:53:00.000Z", "completeDate": "2016-12-21T03:19:43.884Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "403086", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just tested this myself. Removing borderStyle lets the backgroundColor work again. \r\n\r\nTested also in 5.4.0.GA for good measure, it was broken there too", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T15:48:18.000+0000", "updated": "2016-12-09T15:48:18.000+0000" }, { "id": "403089", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Problem: The background-color was applied to the wrong view layer (behind the real {{UITextField}}). Fixed that.\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/8671\r\n\r\nTest-Case:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar field = Ti.UI.createTextField({\r\n borderStyle: Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n\twidth: 200,\r\n\theight: 100,\r\n\tbackgroundColor: 'green'\r\n});\r\n\r\nwin.add(field);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T17:11:26.000+0000", "updated": "2016-12-09T17:11:26.000+0000" }, { "id": "403287", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, the text field now uses backgroundColor when borderStyle is also set.\r\nTested on:\r\n\r\n{noformat}\r\nmacOS Sierra 10.12.1\r\niPhone 6 (10.0)\r\niOS Simulator (9.1, 10.1)\r\nXcode 8.1\r\nTi SDK: 6.1.0.v20161213022709\r\nAppc NPM: 4.2.8\r\nApp CLI: 6.1.0-319\r\nNode v4.6.0\r\n{noformat}\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-12-13T18:00:30.000+0000", "updated": "2016-12-13T18:00:30.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }