{ "id": "123199", "key": "TIMOB-15890", "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": "15711", "description": "2013 Sprint 24", "name": "2013 Sprint 24", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "15712", "description": "2013 Sprint 24 API", "name": "2013 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-29T23:42:33.000+0000", "created": "2013-12-04T08:56:47.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "button", "label", "qe-6.0.0", "qe-6.1.0", "qe-testadded", "shadow", "triage" ], "versions": [], "issuelinks": [ { "id": "53153", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158148", "key": "TIMOB-22198", "fields": { "summary": "Ti.UI.Label Test Suite: Titanium.UI.Label Acceptance TIMOB-15890", "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": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-12-02T18:47:44.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "It is great to see 3.2.0 brings text shadows for Buttons and Labels on Android. However, I does not work as I expected it to work. Only if you set the Android (and MobileWeb) specific {{shadowRadius}} property, the shadow will show. I would assume that leaving it out would default it to {{0}} and result in a hard shadow, [just like in CSS|https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow#Values]. But instead it doesn't show at all, also when I set it to {{0}} myself.\r\n\r\nh1. Steps to reproduce\r\n\r\n1. Create new project: {{ti create -p android,ios -n shadow --id test.shadow -d .}}\r\n2. Add the shadow properties to {{label1}} in the default {{app.js}}:\r\n {code:javascript}\r\n shadowColor: '#F00',\r\n shadowOffset: {\r\n x: 2,\r\n y: 2\r\n }\r\n {code}\r\n3. Run the app on both iOS and Android and notice the shadow is not there on Android.\r\n4. Add the Android (and MobileWeb) specific {{shadowRadius}} property:\r\n {code}\r\n shadowRadius: 0\r\n {code}\r\n5. Try again and see the shadow is still not there on Android.\r\n6. Change the radius to 0.00001 or higher:\r\n {code}\r\n shadowRadius: 0.000001\r\n {code}\r\n7. Try again and see it now finally works.", "attachment": [], "flagged": false, "summary": "Android: Text shadow not working as expected", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "CLI 3.2.0-beta3\r\nSDK 3.2.0-beta3", "closedSprints": [ { "id": 758, "state": "closed", "name": "2016 Sprint 24 SDK", "startDate": "2016-11-19T01:32:06.991Z", "endDate": "2016-12-03T01:32:00.000Z", "completeDate": "2016-12-05T01:53:38.311Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "282454", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Solution is to set the default to something non-zero. Suggestions?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-04T19:24:14.000+0000", "updated": "2013-12-04T19:24:14.000+0000" }, { "id": "282731", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/5070\r\nFor FR, run the below test case. Click the button \"change the shadow of the label and button\". Should see the shadow.\r\n{code}\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 label = Ti.UI.createLabel({\r\n color : '#900',\r\n font : {\r\n fontSize : 48\r\n },\r\n text : 'A simple label',\r\n textAlign : Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n top : 30,\r\n width : 500,\r\n height : 200\r\n});\r\n \r\nvar button = Ti.UI.createButton({\r\n color : 'blue',\r\n font : {\r\n fontSize : 48\r\n },\r\n width : 500,\r\n height : 200,\r\n title : 'A simple button',\r\n});\r\n \r\n \r\nvar change = Ti.UI.createButton({\r\n top: 50,\r\n title: \"change the shadow of the label and button\"\r\n});\r\n \r\nchange.addEventListener(\"click\", function(){\r\n label.shadowColor = \"#aaa\";\r\n label.shadowOffset = {x: 10, y: 10};\r\n button.shadowColor = \"#aaa\";\r\n button.shadowOffset = {x: 10, y: 10};\r\n});\r\n \r\nwin.add(label);\r\nwin.add(button);\r\nwin.add(change);\r\nwin.open(); \r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T22:44:10.000+0000", "updated": "2013-12-06T00:18:43.000+0000" }, { "id": "282750", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.2.X PR: https://github.com/appcelerator/titanium_mobile/pull/5073", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T23:32:37.000+0000", "updated": "2013-12-05T23:32:37.000+0000" }, { "id": "282798", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as fixed.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T05:42:11.000+0000", "updated": "2013-12-06T05:42:11.000+0000" }, { "id": "283752", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Text shadow is working as expected, hence closing the issue.\r\n\r\nVerified the fix on:\r\nDevice : Google Nexus 4, Android Version: 4.0.4,\r\nSDK: 3.2.0.v20131210191510\r\nCLI version : 3.2.0-cr\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.0-cr\r\nACS: 1.0.10\r\nAppcelerator Studio, build: 3.2.0.201312101708\r\ntitanium-code-processor: 1.1.0-cr\r\nXCode : 5.0.2", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-11T06:19:26.000+0000", "updated": "2013-12-11T06:19:26.000+0000" }, { "id": "399391", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*Reopening*\r\n\r\nThis issue has resurfaced where text shadow will not work without {{shadowRadius}} being set more that zero on 6.0 devices and emulators.\r\n\r\n*Note* The issue is not present on 4.4.2 emulator.\r\n\r\n*ENV*\r\n\r\n{noformat}\r\nMac OSX Sierra 10.12\r\nNexus 5X 6.0\r\nandroid emulator 6.0\r\nTi SDK: 6.0.0.v20161017093533\r\nAppc Studio: 4.8.0.201610171310\r\nAppc NPM: 4.2.8-8\r\nApp CLI: 6.0.0-61\r\nNode v4.4.7\r\n{noformat}\r\n", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-10-19T17:37:46.000+0000", "updated": "2016-10-19T17:37:46.000+0000" }, { "id": "400284", "author": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8578\r\n\r\nUse same testing code as posted earlier.", "updateAuthor": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-02T18:45:25.000+0000", "updated": "2016-11-02T18:45:25.000+0000" }, { "id": "402483", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed thanks [~fmerzadyan].\r\nTested on:\r\n\r\n{noformat}\r\nmacOS Sierra 10.12.1\r\nNexus 5X(6.0.1)\r\nNexus 6p (7.0)\r\nandroid emulator (6.0)\r\nStudio: 4.8.0.201611121409\r\nTi SDK: 6.1.0.v20161202081834\r\nAppc NPM: 4.2.8\r\nApp CLI: 6.1.0-302\r\nNode v4.4.7\r\n{noformat}\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-12-02T18:47:14.000+0000", "updated": "2016-12-02T18:47:14.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }