{ "id": "99336", "key": "TIMOB-10474", "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": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14098", "description": "Sprint 2012-18 API", "name": "Sprint 2012-18 API", "archived": true, "released": true, "releaseDate": "2012-09-10" }, { "id": "14275", "description": "2012 Sprint 18", "name": "2012 Sprint 18", "archived": true, "released": true, "releaseDate": "2012-09-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-14T16:24:10.000+0000", "created": "2012-08-16T13:07:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_tableviewrow", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-26T21:12:21.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": "h6.Problem\r\nWhen applying a semi opaque backgroundColor to a tableViewRow in conjunction with the title attribute, the backgroundColor is not rendered properly.\r\n\r\nh6.Actual\r\nThe title area of the row is applied the same backgroundColor as the row, resulting in a more opaque background. For example, if the color #50000000 is used, the table row background color is rendered 50% black, however the title area of the row is also rendered with 50% black background, resulting in a 75% black background due to the underlying row color.\r\n\r\nh6.Expected \r\nThe title area of a row should have no background color rendered to it.\r\n\r\nh6.Repro sequence\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n//\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n \r\n});\r\n\r\nvar tbl = Ti.UI.createTableView()\r\nwin.add(tbl);\r\n\r\nvar tblData = [];\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\ttitle: 'testing 123',\r\n\tbackgroundColor: '#50000000'\r\n});\r\n\r\ntblData.push(row);\r\ntbl.setData(tblData);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh6.Tested on \r\niOS 5.1 simulator\r\n\r\nh6.From the color section in the docs for on Titanium.UI:\r\n\"An additional alpha channel is supported as a prefix to the hex triplet. So, to make the purple-like color '#ff00ff' semi-opaque, you could use an alpha value of '55', giving, '#55ff00ff' or '#5f0f'.\"\r\n", "attachment": [ { "id": "30538", "filename": "iOS Simulator Screen shot Aug 15, 2012 5.14.17 PM.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T13:07:16.000+0000", "size": 17046, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Semi-opaque TableViewRow backgroundColor doesn't play nice with title attribute", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 2.1.0.GA\r\niOS 5.1", "comment": { "comments": [ { "id": "215137", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note: This is because the native built-in label is also getting the color. We need to reset the label to a fully clear background when the BG color is nonopaque.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-20T10:12:39.000+0000", "updated": "2012-08-20T10:12:39.000+0000" }, { "id": "215141", "author": { "name": "allenhartwig", "key": "allenhartwig", "displayName": "Allen Hartwig", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Blain, what is the scenario where the label needs to inherit any background color? Shouldn't it always be fully clear?", "updateAuthor": { "name": "allenhartwig", "key": "allenhartwig", "displayName": "Allen Hartwig", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-20T10:29:36.000+0000", "updated": "2012-08-20T10:29:36.000+0000" }, { "id": "215820", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The scenario is [performance|https://developer.apple.com/library/ios/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/GraphicsDrawingOverview/GraphicsDrawingOverview.html#//apple_ref/doc/uid/TP40010156-CH14-SW30]. Even natively, Apple stresses to avoid using clear (more specifically, opaque views are better) because then the graphics engine doesn't have to do a complex compositing, but can quickly [blit|https://en.wikipedia.org/wiki/Bit_blit] the pixmap onscreen without alphas or masking. a = b is a significantly faster operation than a = (1-x)*a + x*b.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T10:13:07.000+0000", "updated": "2012-08-23T10:13:07.000+0000" }, { "id": "215949", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/2817", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T18:36:03.000+0000", "updated": "2012-08-23T18:36:03.000+0000" }, { "id": "216250", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\nTitanium Studio, build: 2.1.2.201208201549\r\nTitanium SDK:2.2.0.v20120824175712\r\n\r\nDevices:\r\nSimulator 5.1\r\niPhone 4.3.5\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-27T12:04:39.000+0000", "updated": "2012-08-27T12:04:39.000+0000" }, { "id": "217788", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-06T01:36:52.000+0000", "updated": "2012-09-06T01:36:52.000+0000" }, { "id": "217850", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this going to be re-closed now that the label's edited, or does there remain more work?", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-06T12:33:51.000+0000", "updated": "2012-09-06T12:33:51.000+0000" }, { "id": "218431", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Seem as though this was inadvertently reopened. Closing once again", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-11T14:10:46.000+0000", "updated": "2012-09-11T14:10:46.000+0000" }, { "id": "219106", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopeneing to add merge labels", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-14T16:20:00.000+0000", "updated": "2012-09-14T16:20:00.000+0000" }, { "id": "219229", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nTitanium Studio: 2.1.2.201208301612\r\nTitanium SDK: 2.1.3.v20120915120319\r\nDevice: iPad2 (v5.1)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-17T04:11:26.000+0000", "updated": "2012-09-17T04:11:26.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }