{ "id": "134785", "key": "AC-850", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-02-03T15:13:48.000+0000", "created": "2014-08-14T23:55:17.000+0000", "labels": [ "TCSupportTriage" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:08.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "I was experiencing erratic rendering of my alloy views after upgrading to the latest production release of Alloy (1.4.1) and TI SDK (3.3.0). Upon investigating the rendered JS files after running \"titanium build\" from the console, I discovered that empty TSS selectors were causing the erratic rendering.\r\n\r\nHere's the scenario.\r\n\r\n*TSS File 1 (app.tss):*\r\n\r\n{code}\r\n\".blue_button\": {\r\n backgroundColor: \"blue\",\r\n height: '60dp'\r\n},\r\n\".blue_button[formFactor=tablet]\": {\r\n}\r\n{code}\r\n\r\n*TSS File 2 (my_view.tss):*\r\n\r\n{code}\r\n\".blue_button\": {\r\n title: \"Click Me\"\r\n}\r\n{code}\r\n\r\nThe compiled app shows up fine on a tablet but not on a phone. One a phone the button will not have a label; on a tablet, it will.\r\n\r\nWhen I removed the empty selector from *File 1*, rendering started working as I intended it.\r\n\r\nSo far I have only had this experience on iOS (simulator included)", "attachment": [], "flagged": false, "summary": "Alloy: Empty TSS selectors cause buggy rendering", "creator": { "name": "noahlively", "key": "noahlively", "displayName": "Noah Lively", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "noahlively", "key": "noahlively", "displayName": "Noah Lively", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "341830", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Working fine since 3.3.x+", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-02-03T15:13:48.000+0000", "updated": "2015-02-03T15:13:48.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }