{ "id": "105942", "key": "TIMOB-11951", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14784", "description": "2012 Sprint 25 API", "name": "2012 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-07T23:30:20.000+0000", "created": "2012-12-04T19:21:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "module_view", "qe-testadded", "regression" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [ { "id": "23433", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "101477", "key": "AC-2701", "fields": { "summary": "[ios] backgroundGradient: gradient layer resize animated when shouldnt", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-04T11:00: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": "h6.Issue\r\nBackground gradient is taking time and is applying after the window is opened appearing as if some animation has been applied to the view.\r\n\r\nh6.Reproduction steps\r\n1. Click the button\r\n2. backgroundGradient is applied to the view after the window opening. \r\n3. Monitor how the backgroundGradient got animated\r\n\r\nh6.Expected\r\nTi 2.1.2.GA does not animates the backgroundGradient.\r\n\r\nh6.Actual\r\nTi 2.1.3.GA+, animation is performed.\r\n\r\nh6.Tested on\r\niOS simulator 5\r\niPhone 4 - iOS 6\r\n\r\nh6.Repro sequence\r\n- app.js\r\n{code}\r\nvar w = Ti.UI.createWindow({\r\n backgroundColor:'white'\r\n});\r\n\r\nvar b = Ti.UI.createButton({\r\n title:'click'\r\n});\r\nw.add(b);\r\nw.open();\r\nvar data = {\r\n spName : 'Specialty',\r\n id : 100,\r\n name : 'Name',\r\n addr : 'Address',\r\n\r\n };\r\nvar sam = require('sam');\r\nb.addEventListener('click',function(e){\r\n new sam(data).open();\r\n});\r\n{code}\r\n\r\n- sam.js\r\n\r\n{code}\r\nfunction Request(data) {\r\n\r\n\tvar appointmentWindow = Titanium.UI.createWindow({\r\n\t\tlayout : 'vertical'\r\n\t});\r\n\r\n\tvar scrollView = Ti.UI.createScrollView({\r\n\t\tcontentHeight : Ti.UI.SIZE,\r\n\t\tbottom : 20,\r\n\t\tlayout : 'vertical',\r\n\t\tshowVerticalScrollIndicator : true\r\n\t});\r\n\r\n\tvar doctorInfo = Ti.UI.createView({\r\n\t\theight : Ti.UI.SIZE,\r\n\t\twidth : Ti.UI.FILL\r\n\t});\r\n\tvar bgGradient_ios = {\r\n\t\ttype : 'linear',\r\n\t\tstartPoint : {\r\n\t\t\tx : '0%',\r\n\t\t\ty : '100%'\r\n\t\t},\r\n\t\tendPoint : {\r\n\t\t\tx : '100%',\r\n\t\t\ty : '0%'\r\n\t\t},\r\n\t\tcolors : [{\r\n\t\t\tcolor : '#2500A0DF',\r\n\t\t\toffset : 0.75\r\n\t\t}, {\r\n\t\t\tcolor : '#5500A0DF',\r\n\t\t\toffset : 0.25\r\n\t\t}]\r\n\r\n\t};\r\n\r\n\tvar doctorInfoView = Ti.UI.createView({\r\n\t\tlayout : 'horizontal',\r\n\t\theight : Ti.UI.SIZE,\r\n\t\twidth : Ti.UI.FILL,\r\n\t\thorizontalWrap : false,\r\n\t\ttop : 10,\r\n\t\tbackgroundGradient : bgGradient_ios,\r\n\t});\r\n\r\n\tvar doctorDetail = Ti.UI.createView({\r\n\t\theight : Ti.UI.SIZE,\r\n\t\tleft : '5%',\r\n\t\tlayout : 'vertical',\r\n\t\ttop : 7,\r\n\t\twidth : Ti.UI.FILL,\r\n\t\tbottom : 3\r\n\t});\r\n\r\n\tdoctorInfoView.add(doctorDetail);\r\n\r\n\tvar doctorNameLbl = Titanium.UI.createLabel({\r\n\t\ttext : data.name,\r\n\t\tfont : {\r\n\t\t\tfontSize : 14,\r\n\t\t\tfontWeight : 'bold',\r\n\t\t},\r\n\t\tcolor : 'black',\r\n\t\tleft : 0\r\n\t});\r\n\r\n\tdoctorDetail.add(doctorNameLbl);\r\n\r\n\tvar doctorSpecialtyLbl = Titanium.UI.createLabel({\r\n\t\ttext : data.spName,\r\n\t\tcolor : 'black',\r\n\r\n\t\tleft : 0,\r\n\t\tfont : {\r\n\t\t\tfontSize : 12\r\n\t\t}\r\n\t});\r\n\r\n\tdoctorDetail.add(doctorSpecialtyLbl);\r\n\r\n\tvar doctorAddressLbl = Titanium.UI.createLabel({\r\n\t\ttext : data.addr,\r\n\t\tcolor : 'black',\r\n\t\tleft : 0,\r\n\t\tfont : {\r\n\t\t\tfontSize : 12\r\n\t\t}\r\n\t});\r\n\r\n\tdoctorDetail.add(doctorAddressLbl);\r\n\r\n\tdoctorInfo.add(doctorInfoView);\r\n\r\n\tscrollView.add(doctorInfo);\r\n\tappointmentWindow.add(scrollView);\r\n\r\n\treturn appointmentWindow;\r\n};\r\n\r\nmodule.exports = Request;\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: backgroundGradient is taking time appearing as if some animation has been applied to the view", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.1.3.GA+\r\niOS 5 & 6", "comment": { "comments": [ { "id": "230453", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Same issue.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-07T22:12:19.000+0000", "updated": "2012-12-07T22:12:19.000+0000" }, { "id": "234899", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is working fine now without animation.\r\nEnvironment used for verification -\r\nTitanium SDK: 3.1.0.v20130114171802\r\nTitanium  Studio:3.0.1.201212181159\r\nDevice : Simulator 6.0 , iphone 4S iOS 5.1\r\n", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-18T03:47:29.000+0000", "updated": "2013-01-18T03:47:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }