{ "id": "101477", "key": "AC-2701", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-07T23:49:09.000+0000", "created": "2012-09-19T01:19:36.000+0000", "labels": [ "gradient", "resize", "view" ], "versions": [], "issuelinks": [ { "id": "23433", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "105942", "key": "TIMOB-11951", "fields": { "summary": "iOS: backgroundGradient is taking time appearing as if some animation has been applied to the 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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:48.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "If you change the size of a view which contains a gradient, the gradient layer resize gets animated\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\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\twidth:100,\r\n\theight:100,\r\n\tborderRadius:10,\r\n\tborderWidth:2,\r\n\tborderColor:'green',\r\n\tbackgroundGradient:{\r\n\t\ttype:'linear',\r\n\t\tcolors:[{color:'#d4d4d4',position:0.0},{color:'#c4c4c4',position:0.50},{color:'#b4b4b4',position:1.0}]\r\n\t}\r\n});\r\n\r\n\r\nwin.add(view);\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext:\"Should be 100x100 red square in center\",\r\n\ttextAlign:\"center\",\r\n\twidth:\"auto\",\r\n\theight:\"auto\",\r\n\ttop: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\tview.updateLayout({\r\n\t\twidth:150,\r\n\t\theight:150\r\n\t});\r\n label.text = \"Box should now be 150x150\";\r\n});\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "[ios] backgroundGradient: gradient layer resize animated when shouldnt", "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 3.0.0 (master)\r\nios 5.1 (simulator + device)", "comment": { "comments": [ { "id": "219673", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request https://github.com/appcelerator/titanium_mobile/pull/2995", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-09-19T01:31:17.000+0000", "updated": "2012-09-19T01:31:17.000+0000" }, { "id": "222489", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request https://github.com/appcelerator/titanium_mobile/pull/2995", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-08T12:59:27.000+0000", "updated": "2012-10-08T12:59:27.000+0000" }, { "id": "230497", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3559", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-07T23:49:09.000+0000", "updated": "2012-12-07T23:49:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }