{ "id": "62187", "key": "TIMOB-1555", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15932", "description": "2014 Sprint 05 API", "name": "2014 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-03T20:21:39.000+0000", "created": "2011-04-15T02:55:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "dev-investigate", "feature", "imageview", "ios", "ipad", "iphone", "kitchensink", "qe-closed-3.3.0", "qe-testadded", "shadow", "triage", "view", "window" ], "versions": [], "issuelinks": [ { "id": "35327", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99417", "key": "TIMOB-13294", "fields": { "summary": "iOS: Allow user to control the clipping behavior of View", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-25T07:27:39.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "These views should have a shadow property.", "attachment": [], "flagged": false, "summary": "iOS: Expose shadow properties on the CALayer", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126030", "author": { "name": "jamesk", "key": "jamesk", "displayName": "James K", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This would be extremely useful.\r\n\r\nIt also seems relatively straightforward to implement: http://stackoverflow.com/questions/805872/how-do-i-draw-a-shadow-un...", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:55:57.000+0000", "updated": "2013-09-24T20:56:51.000+0000" }, { "id": "126031", "author": { "name": "majman", "key": "majman", "displayName": "majman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "+1 for Drop Shadows!", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:55:58.000+0000", "updated": "2013-09-24T20:57:28.000+0000" }, { "id": "170856", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "It should also support setting blur and opacity.\r\n\r\nExample:\r\n{code:JavaScript}\r\nvar view = Ti.UI.createView({\r\n\tshadow: {\r\n\t\tcolor: '#000',\r\n\t\toffset: {\r\n\t\t\tx: 0,\r\n\t\t\ty: 1\r\n\t\t},\r\n\t\topacity: 0.4,\r\n\t\tblur: 2\r\n\t}\r\n});\r\n{code}", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-10-30T13:48:07.000+0000", "updated": "2011-10-30T13:48:07.000+0000" }, { "id": "179540", "author": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "+1 for this.\r\n\r\nThe part of obj-c requires import QuartzCore framework to expose the layer property on any UIView. If QuartzCore is added, is as easy as \r\n\r\n{noformat}\r\n self.layer.masksToBounds = NO;\r\n self.layer.shadowOffset = CGSizeMake(5, 5);\r\n self.layer.shadowRadius = 5;\r\n self.layer.shadowOpacity = 0.3;\r\n\r\n{noformat}", "updateAuthor": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-17T03:38:04.000+0000", "updated": "2012-01-17T03:38:04.000+0000" }, { "id": "179542", "author": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is my workaround:\r\n\r\nhttp://developer.appcelerator.com/question/130784/trick-drop-real-shadows-in-titanium-ios\r\n\r\n", "updateAuthor": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-17T05:20:42.000+0000", "updated": "2012-01-17T05:20:42.000+0000" }, { "id": "219675", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "i implemented it in my branch. Here is an example code that\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\nwin.add(Ti.UI.createView({\r\n\ttop:10,\r\n width:80,\r\n height:80,\r\n shadowColor:'#000000',\r\n shadowOffset:{x:0,y:0},\r\n shadowRadius:6,\r\n borderRadius:20,\r\n borderWidth:2,\r\n borderColor:'green',\r\n backgroundGradient:{\r\n type:'linear',\r\n colors:[{color:'#d4d4d4',position:0.0},{color:'#c4c4c4',position:0.50},{color:'#b4b4b4',position:1.0}]\r\n }\r\n}));\r\n\r\nwin.add(Ti.UI.createView({\r\n\ttop:10,\r\n width:80,\r\n height:80,\r\n shadowColor:'#000000',\r\n shadowOffset:{x:0,y:0},\r\n shadowRadius:6,\r\n borderRadius:20,\r\n borderWidth:2,\r\n backgroundColor:'blue',\r\n borderColor:'green'\r\n}));\r\n\r\nwin.add(Ti.UI.createView({\r\n\ttop:10,\r\n width:80,\r\n height:80,\r\n shadowColor:'#ddff0000',\r\n shadowOffset:{x:0,y:0},\r\n shadowRadius:6,\r\n borderRadius:20,\r\n borderWidth:2,\r\n borderColor:'green',\r\n backgroundImage:'/images/bg.png'\r\n}));\r\n\r\nwin.add(Ti.UI.createView({\r\n\ttop:10,\r\n width:80,\r\n height:80,\r\n shadowColor:'#ddff0000',\r\n shadowOffset:{x:0,y:0},\r\n shadowRadius:6,\r\n borderRadius:20,\r\n borderWidth:2,\r\n borderColor:'green',\r\n backgroundRepeat:true,\r\n backgroundImage:'/images/atlanta.jpg'\r\n}));\r\nwin.open();\r\n{code}\r\npull request coming", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-09-19T01:54:02.000+0000", "updated": "2012-09-19T01:54:02.000+0000" }, { "id": "219688", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request https://github.com/appcelerator/titanium_mobile/pull/2996", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-09-19T06:06:33.000+0000", "updated": "2012-09-19T06:06:33.000+0000" }, { "id": "224577", "author": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is it possible to get this working for windows as well? For example [ViewDeck|https://github.com/Inferis/ViewDeck] uses shadows on windows. Or should that be a new ticket?", "updateAuthor": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-20T17:04:36.000+0000", "updated": "2012-10-20T17:04:36.000+0000" }, { "id": "294122", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "Noticed the update\r\n\r\nJust was trying to use drop shadows last week and noticed there was no way to do it with dynamically sized views based on content.\r\n\r\n+1 for drop shadows, can't come soon enough for me.", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2014-02-21T15:23:34.000+0000", "updated": "2014-02-21T15:23:34.000+0000" }, { "id": "294281", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5367\r\n\r\nTest case added in KS\r\nBaseUI->Views->Shadows & Clipping\r\nhttps://github.com/appcelerator-developer-relations/KitchenSink/pull/142", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-23T06:21:38.000+0000", "updated": "2014-02-23T08:06:03.000+0000" }, { "id": "295332", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "How do we use this is if we grab the latest CI build? Any similar functionality for Android?", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2014-03-03T21:11:15.000+0000", "updated": "2014-03-03T21:11:27.000+0000" }, { "id": "302495", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with test environment:\r\nAppc-Studio:3.3.0.201404211130\r\nsdk:3.3.0.v20140424130915\r\nacs:1.0.14\r\nalloy:1.4.0-dev\r\nnpm:1.3.2\r\ntitanium:3.3.0-dev\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Iphone5(7.1)\r\n\r\n\r\nShadow properties working fine in view. \r\nClipping work fine with parent and child View.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-25T07:27:12.000+0000", "updated": "2014-04-25T07:27:12.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }