{ "id": "145591", "key": "AC-984", "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": "2015-09-29T03:59:16.000+0000", "created": "2015-03-10T13:11:02.000+0000", "labels": [ "animation", "ios", "mobilesdk" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:18.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "\"New layout set while view [object Arrow] animating: Will relayout after animation.\" warning appears when I'll try to create a simple animation with opacity.\r\n\r\nSteps:\r\n1. Create imageview,\r\n2. Animate using this code\r\n$.Arrow.animate({\r\n opacity: 0.2,\r\n duration: 800\r\n});", "attachment": [], "flagged": false, "summary": "\"New layout\" warning using animation", "creator": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mac OSX Yosemite - Testing on iPhone Simulator - Titanium 3.5.1", "comment": { "comments": [ { "id": "345663", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nThis should be a normal behave, it just tell you that your layout may change. It will not impact your application's running. \r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-03-11T05:30:18.000+0000", "updated": "2015-03-11T05:30:18.000+0000" }, { "id": "345693", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "body": "So.. There's a way to hide these WARN messages? I've a continuous animation and this is too annoying.", "updateAuthor": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-03-11T12:41:04.000+0000", "updated": "2015-03-11T12:41:04.000+0000" }, { "id": "347067", "author": { "name": "psheth", "key": "psheth", "displayName": "Prashant Sheth", "active": true, "timeZone": "America/Chicago" }, "body": "HI,\r\n\r\nThe issue is not the warnings. (I am working on an app with similar issue to this, so adding my issue here as comment.)\r\n\r\nThe issue is this:\r\n\r\nwe have multiple Views in the app\r\nView 1: has an animation sequence: animation is started\r\nUser switches to View 2..3...\r\ncomes back to View 1:\r\nNow in View 1: the animation sequence is re-initiated and hence causes disruption\r\n\r\nthe question is:\r\n\r\n1. Is there a way i can stop (complete doesn't work) the animation and restart it when the views are switched? If so how would I approach this where do i stop/start the animation (what event) for this to happen? HOW (what command) do I use to stop/start the animation?\r\nPlease let me know and I appreciate this in advance!!\r\n\r\nThere's no limit as to how many times the user will comeback to the animation view.. they can go in and out, switch to different apps and relaunch the app, at all these points the animation is restarted in the view. \r\nTHANKS \r\nPrashant\r\n\r\n", "updateAuthor": { "name": "psheth", "key": "psheth", "displayName": "Prashant Sheth", "active": true, "timeZone": "America/Chicago" }, "created": "2015-03-23T23:27:35.000+0000", "updated": "2015-03-23T23:29:40.000+0000" }, { "id": "361927", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nI have tested this issue in updated environment. We could not reproduce it.\r\n\r\n\r\n*Test Environments:*\r\n\r\nCLI Version :4.0.1\r\nTitanium SDK Version:4.1.0.GA\r\nAndroid: Google Galaxy Nexus:4.1.1 - API 16 - 720x1280\r\nAppc Studio: Appcelerator Studio, build: 4.1.1.201507141126\r\nAlloy: 1.7.3\r\nTarget Platform = simulator,iOS SDK: 8.1\r\n\r\n*Test code:*\r\n\r\n*index.js*\r\n\r\n{code}\r\n\r\nfunction doClick(e) {\r\n\t\r\n\t var matrix = Ti.UI.create2DMatrix()\r\n\t matrix = matrix.rotate(180);\r\n\t matrix = matrix.scale(2, 2);\r\n\t var a = Ti.UI.createAnimation({\r\n\t transform : matrix,\r\n\t duration : 100,\r\n\t autoreverse : true,\r\n\t opacity: 0.2,\r\n\t repeat : 3\r\n\t });\r\n\t\r\n\t $.loadingImgView.animate(a);\r\n\t var animationHandler = function() {\r\n\t\t a.removeEventListener('complete',animationHandler);\r\n\t\t Ti.API.info(\"Animation Completd\");\r\n\t\t $.bg.backgroundColor = 'pink';\r\n\t\t $.bg.animate(a);\r\n\t\t};\r\n\t\ta.addEventListener('complete',animationHandler);\r\n\t\t$.bg.animate(a);\r\n \r\n}\r\n\r\n$.index.open();\r\n\r\n{code}\r\n\r\nindex.xml\r\n\r\n{code}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n{code}\r\n\r\nindex.tss\r\n\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\",\r\n\tlayout:'vertical'\r\n}\r\n\r\n\"Label\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\",\r\n\ttop:'5'\r\n}\r\n\r\n\"#buttonid\": {\r\n\tfont: {\r\n\t\tfontSize: 12\r\n\t},\r\n\ttop:'20',\r\n\tbackgroundColor:\"orange\",\r\n\twidth:'200',\r\n\twidth:'30'\r\n}\r\n\r\n\r\n\r\n\"#bg\": {\r\n\tbackgroundColor:\"orange\",\r\n\ttop:'50'\r\n},\r\n\r\n\"#loadingImgView\" : {\r\n duration: 100,\r\n repeatCount: 0,\r\n \r\n}\r\n\r\n \r\n\r\n{code}\r\n\r\n*Test Steps:*\r\n\r\n* Create an alloy project .\r\n* Copy above test code into your project.\r\n* Run the project \r\n\r\n*Ti logs:*\r\n\r\n[INFO] : Finished building the application in 2m 20s 341ms\r\n\r\n[INFO] : Launching iOS Simulator\r\n\r\n[INFO] : Project built successfully in 4m 21s 902ms\r\n\r\n-- Start simulator log -------------------------------------------------------\r\n\r\n[INFO] : Application started\r\n\r\n[INFO] : testalloy123/1.0 (4.1.0.d57aa7d)\r\n\r\n[WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation.\r\n\r\n[WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation.\r\n\r\n[INFO] : Animation Completd\r\n\r\n[WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation.\r\n\r\n[WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation.\r\n\r\n[WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation.\r\n\r\n\r\n\r\n*Test Result:*\r\n\r\nProject builds successfully with warning in simulator. This warning be a normal behave, it just tell you that your layout may change. It will not impact application's running.Auto Complete event is working as expected.\r\n\r\n\r\nThanks", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-01T11:34:21.000+0000", "updated": "2015-09-29T03:58:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }