{ "id": "171898", "key": "TIMOB-26191", "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-10T17:55:15.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [ { "id": "56671", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "171899", "key": "TIMOB-26192", "fields": { "summary": "Label shadow offsets differently on platforms", "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": "2020-09-25T21:47:08.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Ti.UI.SIZE does not take in to account the shadow offset and cuts it off \r\n\r\n*Test case*\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\nThe shadow should not be cut short\r\n\r\n*Actual*\r\n !Screen Shot 2018-07-10 at 5.37.37 PM.png|thumbnail! ", "attachment": [ { "id": "65340", "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-10T18:02:52.000+0000", "size": 419261, "mimeType": "image/png" } ], "flagged": false, "summary": "Ti.UI.SIZE does not take in to account label shadow ", "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": [ { "id": "457038", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "For Android you can use this hyperloop code:\r\n{code:javascript}\r\nimport View from 'android.view.View';\r\nimport ViewGroup from 'android.view.ViewGroup';\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white',\r\n\texitOnClose: true,\r\n\tfullscreen: false,\r\n\tlayout: 'vertical',\r\n\ttitle: 'Label Demo'\r\n});\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n\tcolor: '#900',\r\n\tfont: {\r\n\t\tfontSize: 48\r\n\t},\r\n\tshadowColor: '#aaa',\r\n\tshadowOffset: {\r\n\t\tx: 50,\r\n\t\ty: 50\r\n\t},\r\n\tshadowRadius: 3,\r\n\ttext: 'A simple label',\r\n\ttextAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n\ttop: 30,\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE\r\n});\r\n\r\nwin.addEventListener(\"open\", function() {\r\n\t// unclip the view\r\n\tViewGroup.cast(new View(label1).getParent()).setClipChildren(false);\r\n})\r\n\r\nwin.add(label1);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-25T21:47:08.000+0000", "updated": "2020-09-25T21:47:08.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }