{ "id": "131126", "key": "AC-1110", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-07-09T22:34:51.000+0000", "created": "2014-06-02T06:44:53.000+0000", "labels": [ "animation", "scrollview" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:28.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 I have a scrollview ( horizontal layout, no wrap )\r\nI then add a view with a width of 1px ( it doesn't work with 0 ) and then animate it like:\r\n\r\nview.animate({\r\n\t width: 200,\r\n\t duration:1000,\r\n\t },function() {\r\n\t });\r\n\t};\r\n\r\nIt will create an \"empty\" space to ease the width into. \r\n\r\nI would assume that the width would grow and the items to the right would get shifted. \r\n\r\nThe workaround I used is as follows:\r\n_.defer (function(){\t\t\r\n\t\tvar newWidth = Math.floor(width);\r\n\t\tvar segments = 100;\r\n\t\tvar duration = 400;\t\t\r\n\t\tvar deltaStep = newWidth/segments;\r\n\t\t_(segments).times(function(n){\r\n\t\t\t_.delay( function() {\r\n\t\t\t\tdetailedView.setWidth(n * deltaStep);\r\n\t\t\t\t},duration * (n/segments));\t\r\n\t\t});\r\n\t});\t\r\n\r\nSeems a bit much to the desired effect ( very simple equation, no easing etc )", "attachment": [], "flagged": false, "summary": "Animation of width within a scrollview does not have expected behavior", "creator": { "name": "firl", "key": "firl", "displayName": "ed bond", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "firl", "key": "firl", "displayName": "ed bond", "active": true, "timeZone": "America/Chicago" }, "environment": "ios, android", "comment": { "comments": [ { "id": "311574", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~firl]!\r\n\r\nThanks for your report. Can you please help us to move this to Ti Mobile? We need some texts here:\r\n\r\n1. Description of the problem\r\n2. Runnable Testcase\r\n3. Expected behavior\r\n4. Actual behavior\r\n\r\nBest Regards, ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-06-30T07:22:05.000+0000", "updated": "2014-06-30T07:22:05.000+0000" }, { "id": "313106", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Customer hasn't replied yet. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-09T22:34:51.000+0000", "updated": "2014-07-09T22:34:51.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }