Hello,
does anyone know the best practice to follow to resolve the Will relayout after animation. warnings ?
Everything works as expected but it's annoying seeing a warning without possibility to resolve it.
Only reference in JIRA found is: QE-224
Happens both in iOS Simulator and in devices. Latest 2.1.0 CI build.
4 Answers
I dont think is your fault, except if you do something like
view.animate({left:100}); view.left = 150;In this case Ti will wait for the animation to end then do the layout. To get over it you can try to set the left property when the animation ends
view.animate({left:100}, function(){ view.left = 150; });
AudioUI is a child for sibling? As far as I know Ti doesn't play well with animation for both parent and kid view.
As an aside, you can always do this:
view.animate({bottom:0, duration:500})No need to create an animation.
Is it safe to ignore this warning? I believe something like it came up before and the general consensus was to ignore it until Appcelerator fixed it. What is it trying to tell us? I have a rather big animated menu, and I get about 100 of these warnings, but nothing appears to be wrong with the layout.
The problem seems solved by this commit: Merge pull request #2523 from srahim/timob-9610.
While originated from a different problem, "iOS: Animation - Full View window disappears if orientation is changed", this has made the warnings I was seeing disappear.
The patch is already in the "Jul 10 2012 15:41 r617bdb9d" CI build.
Your Answer
This question has been locked and cannot accept new answers.