{ "id": "99417", "key": "TIMOB-13294", "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:59.000+0000", "created": "2012-08-20T00:45:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "kitchensink", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "35327", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "62187", "key": "TIMOB-1555", "fields": { "summary": "iOS: Expose shadow properties on the CALayer", "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-28T12:07:25.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": "a clipChildren property would be a nice addition.\r\nFor example it would allow very easy implementation of drop shadow.\r\n\r\ntest case \r\n{code}\r\nvar win = Ti.UI.createWindow({fullscreen: true, backgroundColor: 'white'});\r\n \r\n// this test should test that we have a red 100x100 view in the \r\n// center of the screen by using the size property to set it\r\n \r\nvar view = Ti.UI.createView({\r\n width:100,\r\n height:100,\r\n clipChildren:false,\r\n backgroundColor:\"red\"\r\n});\r\n \r\nvar innerview = Ti.UI.createView({\r\n left:-20,\r\n right:-20,\r\n backgroundColor:\"green\"\r\n});\r\n \r\nvar innerview2 = Ti.UI.createView({\r\n backgroundColor:\"yellow\"\r\n});\r\n \r\nview.add(innerview);\r\nview.add(innerview2);\r\nwin.add(view);\r\n \r\nvar label = Ti.UI.createLabel({\r\n text:\"Should be 100x100 red square in center\",\r\n textAlign:\"center\",\r\n width:\"auto\",\r\n height:\"auto\",\r\n top:20\r\n});\r\n \r\nwin.add(label);\r\n \r\n \r\nvar button = Ti.UI.createButton({\r\n title:\"Change Size\",\r\n width:120,\r\n height:40,\r\n bottom:20\r\n});\r\nwin.add(button);\r\n \r\nbutton.addEventListener('click',function() {\r\n view.updateLayout({\r\n width:150,\r\n height:150\r\n });\r\n label.text = \"Box should now be 150x150\";\r\n});\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\npull request comming", "attachment": [], "flagged": false, "summary": "iOS: Allow user to control the clipping behavior of View", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "titanium 2.2.0 (master)\r\nios 5.1\r\nandroid 3.2", "comment": { "comments": [ { "id": "215113", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2781", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-08-20T01:05:17.000+0000", "updated": "2012-08-20T01:05:17.000+0000" }, { "id": "274249", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We unfortunately need to defer this to 3.3.0 based on some high-priority customer issues.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-08T20:48:39.000+0000", "updated": "2013-10-08T20:48:39.000+0000" }, { "id": "294123", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "could shadows be added to dynamically sized elements based on contents with this property? Say with a height of Ti.UI.SIZE.", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2014-02-21T15:26:32.000+0000", "updated": "2014-02-21T15:26:32.000+0000" }, { "id": "294282", "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:52.000+0000", "updated": "2014-02-23T08:05:52.000+0000" }, { "id": "295331", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "any similiar property for android? How would we use this if we grabbed the CI build?", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2014-03-03T21:08:06.000+0000", "updated": "2014-03-03T21:08:06.000+0000" }, { "id": "302692", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The viewShadow related properties and view clipMode property working fine.\r\nVerified on: \r\nAppc Studio: 3.3.0.201404211130 \r\nSDK build: 3.3.0.v20140422163054 \r\nalloy: 1.4.0-dev \r\nCLI: titanium-3.3.0-dev \r\ntitanium-code-processor:1.1.1-beta1 \r\nXcode: 5.1.1 \r\nOsx: 10.9.2 \r\nDevice: iPhone4 (7.1)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-28T12:07:25.000+0000", "updated": "2014-04-28T12:07:25.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }