{ "id": "171899", "key": "TIMOB-26192", "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": null, "resolutiondate": null, "created": "2018-07-10T19:04:44.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [ { "id": "56671", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "171898", "key": "TIMOB-26191", "fields": { "summary": "Ti.UI.SIZE does not take in to account label shadow ", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-07-12T21:12:39.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": [], "description": "Label shadow offsets differently on platforms, I guess both platforms calculate the shadow offset differently.\r\n\r\n*Test Case*\r\n\r\n{noformat}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n exitOnClose: true,\r\n fullscreen: false,\r\n layout: 'vertical',\r\n title: 'Label Demo'\r\n});\r\n \r\nvar label1 = Ti.UI.createLabel({\r\n color: '#900',\r\n font: { fontSize:48 },\r\n shadowColor: '#aaa',\r\n shadowOffset: {x:50, y:50},\r\n shadowRadius: 3,\r\n text: 'A simple label',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n top: 30,\r\n width: Ti.UI.SIZE, height: Ti.UI.SIZE\r\n});\r\n \r\nvar label2 = Ti.UI.createLabel({\r\n color:'blue',\r\n text: 'A long label with\\na few line breaks\\nand unicode (UTF8)\\nsymbols such as\\na white chess piece \\u2655\\nand the euro symbol \\u20ac\\nlooks like this!\\n',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n top: 30,\r\n width: 300, height: 200\r\n});\r\n \r\nwin.add(label1);\r\nwin.add(label2);\r\nwin.open();\r\n{noformat}\r\n\r\n*Expected*\r\nBoth platforms should have the same shadow offset.\r\n\r\n*Actual*\r\n !Screen Shot 2018-07-10 at 5.37.37 PM.png|thumbnail! ", "attachment": [ { "id": "65341", "filename": "Screen Shot 2018-07-10 at 5.37.37 PM.png", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2018-07-10T19:04:40.000+0000", "size": 419261, "mimeType": "image/png" } ], "flagged": false, "summary": "Label shadow offsets differently on platforms", "creator": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "environment": "SDK Version : 7.3.0.v20180709142952\r\nmacOS Sierra 10.13.3\r\nandroid emulator (8.1.0)\r\niOS simulator 11.4\r\nAppc CLI : 7.0.4\r\nAppc NPM : 4.2.12\r\nNode : v8.9.1", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }