{ "id": "111824", "key": "TIMOB-13237", "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": "15486", "description": "2013 Sprint 10 API", "name": "2013 Sprint 10 API", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-15T20:41:06.000+0000", "created": "2013-03-28T09:32:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_animation", "qe-3.1.0", "qe-closed-3.1.1", "qe-testadded" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "31999", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "98396", "key": "TIMOB-10318", "fields": { "summary": "iOS: animation redraw problem", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-20T20:36:23.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": "View.left property does not work second time when animation is implemented on button click.\r\nThis is not regression since the issue occurs on 3.0.2 GA but the issue DOES NOT occur on 3.0.0.GA\r\n\r\nSteps to reproduce:\r\n\r\n1. Create an app using the code below.\r\n2. Launch the app.\r\n3. Click on 'Animate' button. The red view moves from left edge to right with animation.\r\n4. Click on 'Animate' button again.\r\n\r\nActual:\r\nThe view remains at the right. So, no animation is noticed second time.\r\n\r\nExpected:\r\nThe view should move to the left instantly and then should animate to the right.\r\n\r\n{code}\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'white',\r\n fullscreen: true \r\n});\r\n\r\n\r\n\t\t//label using localization-ready strings from /i18n/en/strings.xml\r\n\t\tvar view = Ti.UI.createView({\r\n\t\t backgroundColor:'red',\r\n\t\t height:100,\r\n\t\t width:100,\r\n\t\t top:0,\r\n\t\t left:0\r\n\t\t});\r\n\t\twin1.add(view);\r\n\t\t \r\n\t\tvar button = Titanium.UI.createButton({\r\n\t\t title:'Animate',\r\n\t\t width:200,\r\n\t\t height:40,\r\n\t\t bottom:20,\r\n\t\t left: 10\r\n\t\t});\r\n\t\t \r\n\t\tbutton.addEventListener('click', function()\r\n\t\t{\r\n\t\t view.left = 0;\r\n\t\t // view.updateLayout({left:0}); //tried that too, still doesnt work\r\n\t\t view.animate({left:(win1.rect.width - view.rect.width), duration:1000});\r\n\t\t});\r\n\t\twin1.add(button);\t\t \r\n\t\twin1.open();\r\n\t\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: View - View.left does not work second time when animation is implemented on button click", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.1.0.v20130327135307\r\nStudio:3.0.2.201302191606\r\nDevice: iPad mini(v 6.0), iPad 3(os 5.1.1), simulator\r\nOS: OSX 10.7.5", "comment": { "comments": [ { "id": "246165", "author": { "name": "pseda", "key": "pseda", "displayName": "Patrick Seda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Extending the behavior definition based upon other usage scenarios:\n\n1) This is not limited to the \"left\" value of the view, e.g. \"top\" also does not work.\n2) However, the \"backgroundImage\" and \"backgroundColor\" parameters WILL behave properly.\n3) There is some latency issue present. i.e. Delaying the animation after changing the properties enables correct behavior, demonstrated by this modification to the reporter's sample code:\n{code}\nsetTimeout(function() {\n\tview.animate({left:(win1.rect.width - view.rect.width), duration:1000});\n}, 500);\n{code}", "updateAuthor": { "name": "pseda", "key": "pseda", "displayName": "Patrick Seda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-06T18:29:57.000+0000", "updated": "2013-04-06T18:29:57.000+0000" }, { "id": "250590", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is because we coalesce view updates in LayoutQueue.m. If we have the animations wait in that same line similarly, this would work.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T17:29:48.000+0000", "updated": "2013-05-07T17:29:48.000+0000" }, { "id": "251338", "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/4250", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T17:55:41.000+0000", "updated": "2013-05-10T17:55:41.000+0000" }, { "id": "252159", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport PR to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/4272", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-15T20:24:19.000+0000", "updated": "2013-05-15T20:24:19.000+0000" }, { "id": "255309", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed on iPhone 5 6.1.4\r\n\r\nEnvironment:\r\n Appcelerator Studio 3.1.1.201305312408\r\n Titanium SDK 3.1.1.v20130530204550\r\n Alloy 1.1.3-alpha\r\n Titanium-Code-Processor 1.1.3-alpha4\r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-31T23:05:12.000+0000", "updated": "2013-05-31T23:05:12.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }