{ "id": "172878", "key": "ALOY-1643", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-01-16T10:21:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engTriage" ], "versions": [], "issuelinks": [], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2019-03-14T20:12:38.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": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "When using conditional styling in Alloy, it seems to work in the following case:\r\n\r\n**alloy.js**\r\n{code:js}\r\nAlloy.Globals.isLargeDisplay =Ti.Platform.displayCaps.platformHeight) > 568;\r\nAlloy.Globals.isLargeiOSDisplay = Ti.Platform.osname !== 'android' && Alloy.Globals.isLargeDisplay;\r\n{code}\r\n\r\n**app.tss**\r\n{code:js}\r\n'.largeTitles[if=Alloy.Globals.isLargeiOSDisplay]': {\r\n largeTitleEnabled: true,\r\n largeTitleDisplayMode: Ti.UI.iOS.LARGE_TITLE_DISPLAY_MODE_ALWAYS\r\n}\r\n{code}\r\n\r\nError:\r\n{code}\r\n[ERROR] V8Exception: Exception occurred at /alloy/styles/myview/detail/index.js:1: Uncaught TypeError: Cannot read property 'LARGE_TITLE_DISPLAY_MODE_ALWAYS' of undefined\r\n{code}\r\n\r\nWe just workarounded it by using the raw value of the enum ({{1}} for {{LARGE_TITLE_DISPLAY_MODE_ALWAYS}}). Not really ideal, but unblocking.", "attachment": [], "flagged": false, "summary": "Alloy: Conditional styling broken in tss", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }