{ "id": "104705", "key": "TIMOB-12646", "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": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-09-17T18:32:05.000+0000", "created": "2012-11-08T20:21:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "defect", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T21:35:39.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": "Platform: iOS\r\nDevice: iOS Simulator 6.0 & iPod Touch (4th gen, software version 6.0.1)\r\nRepro:\r\n1. Create a TableView\r\n2. Create a TableViewRow\r\n3. Create a View with a backgroundColor\r\n4. Add the view to the row\r\n5. Add the row to the table\r\n6. Tap and hold on the row\r\nResult: The row's selectedBackgroundColor becomes visible and the view's backgroundColor becomes transparent\r\nExpected: The row's selectedBackgroundColor becomes visible and the view's backgroundColor remains visible\r\n\r\nAdditional Notes:\r\n1. If the view inside of the row has children, they are still displayed. Only the view's backgroundColor is affected.\r\n2. Setting the row's selectionStyle to NONE prevents the backgroundColor of the view from disappearing.", "attachment": [ { "id": "35444", "filename": "FirstView.js", "author": { "name": "bartrobot", "key": "bartrobot", "displayName": "Bart Seaman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T01:11:52.000+0000", "size": 561, "mimeType": "application/x-javascript" }, { "id": "50480", "filename": "monkey.zip", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T18:59:34.000+0000", "size": 40827, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: TableViewRow selection causes child view's backgroundColor to disappear", "creator": { "name": "bartrobot", "key": "bartrobot", "displayName": "Bart Seaman", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bartrobot", "key": "bartrobot", "displayName": "Bart Seaman", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS Simulator 6.0 & iPod Touch (4th gen, software version 6.0.1)", "closedSprints": [ { "id": 219, "state": "closed", "name": "2014 Sprint 19 SDK", "startDate": "2014-09-18T21:06:27.559Z", "endDate": "2014-09-27T00:00:00.000Z", "completeDate": "2014-09-29T13:58:58.022Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "237548", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this only with Alloy? Does this happen in traditional Titanium development as well?", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-06T23:20:23.000+0000", "updated": "2013-02-06T23:20:23.000+0000" }, { "id": "237569", "author": { "name": "bartrobot", "key": "bartrobot", "displayName": "Bart Seaman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This behavior occurs in traditional development, too.", "updateAuthor": { "name": "bartrobot", "key": "bartrobot", "displayName": "Bart Seaman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T01:06:56.000+0000", "updated": "2013-02-07T01:06:56.000+0000" }, { "id": "237570", "author": { "name": "bartrobot", "key": "bartrobot", "displayName": "Bart Seaman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In studio, create a new Titanium Classic Project using the Single Window Application template. Replace the generated FirstView.js with the attached.", "updateAuthor": { "name": "bartrobot", "key": "bartrobot", "displayName": "Bart Seaman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T01:11:52.000+0000", "updated": "2013-02-07T01:11:52.000+0000" }, { "id": "237571", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Assigning to Ingo so that the platform team can assess it, since this is not an Alloy-specific issue.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T01:13:16.000+0000", "updated": "2013-02-07T01:13:16.000+0000" }, { "id": "266403", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is time to fix the issue otherwise is impossible to use view with background color without dissapearing. I am adding next example, borderColor does work ,but backgroundColor doesn't...\r\n\r\n{code:javascript} \r\nvar win = Titanium.UI.createWindow();\r\n \r\nvar row = Ti.UI.createTableViewRow({\r\n\twidth: Ti.UI.FILL, height: Ti.UI.FILL,\r\n\tbackgroundColor: \"white\"\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\twidth: 33, height: 33,\r\n\tborderWidth: 3,\r\n\tborderColor: \"blue\",\r\n\tbackgroundColor: \"red\"\r\n});\r\n\r\nrow.add(view);\r\n\r\n \r\nvar tableView = Titanium.UI.createTableView({\r\n\tdata: [row]\r\n});\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code} ", "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-14T10:16:07.000+0000", "updated": "2013-08-14T10:16:07.000+0000" }, { "id": "273955", "author": { "name": "binc-tw", "key": "binc-tw", "displayName": "Thomas Weber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same problem with Version 3.1.3 GA (iOS7)", "updateAuthor": { "name": "binc-tw", "key": "binc-tw", "displayName": "Thomas Weber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-06T17:43:44.000+0000", "updated": "2013-10-06T17:43:44.000+0000" }, { "id": "290419", "author": { "name": "nubu", "key": "nubu", "displayName": "Nico Barelmann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Still not solved - in 3.2", "updateAuthor": { "name": "nubu", "key": "nubu", "displayName": "Nico Barelmann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-01-30T14:31:36.000+0000", "updated": "2014-01-30T14:31:36.000+0000" }, { "id": "318679", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is Apple's behavior. When a table view row is selected, it will iterate through it's subviews, or children, and set their background color's alpha to transparent. When deselected, it will iterate through it's subviews again reseting their background color's alpha to whatever it was. In other words, the children's background color becomes transparent on row selection, and this is done by the system. \r\n", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T17:15:57.000+0000", "updated": "2014-08-14T17:15:57.000+0000" }, { "id": "318703", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce the issue natively in Xcode 5.1.1 with iphone 5 (7.0.2); see monkey.zip attachment", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T18:59:22.000+0000", "updated": "2014-08-14T18:59:22.000+0000" }, { "id": "324317", "author": { "name": "mdadu", "key": "mdadu", "displayName": "Muhammad Dadu", "active": false, "timeZone": "Europe/London" }, "body": "This is native behavior, and there will be no fix. In general, we try not to work around native behavior as the fix can be fragile.\r\n\r\nFor those interested in addressing the issue, there is a work around that you can apply to your own SDK. We have created a PR that shows what changes need to be made against the 3.4.0 version of the SDK: https://github.com/appcelerator/titanium_mobile/pull/6121. You will need to pull in this PR and build a version of the SDK as explained in the documentation.\r\n\r\nThis can then be used by appending the following property to Titanium.UI.createTableViewRow.\r\n\r\n{code}\r\nselectedBackgroundNative: false\r\n{code}", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-17T18:32:05.000+0000", "updated": "2014-09-17T20:27:22.000+0000" }, { "id": "366200", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "body": "There is a pretty simple work around where you use backgroundImage instead.", "updateAuthor": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2015-10-08T03:49:16.000+0000", "updated": "2015-10-08T03:49:16.000+0000" }, { "id": "415017", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:35:39.000+0000", "updated": "2017-03-22T21:35:39.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }