In 1.2 SDK, opening a window with the contained view will animate the view
Here's the boiled down code to illustrate the problem:
var win = Ti.UI.createWindow({
height:30,
width:320,
backgroundColor:'#f00' // red
});
var view = Ti.UI.createView({
height:30,
width:320,
backgroundColor:'#000' // black
});
win.add(view);
win.open();
After upgrading to 1.2 mobile SDK, running this sample will produce an unwanted animation on the contained view, which will quickly slide in from the left (you will see the red window background underneath). In previous version of the SDK, the view would appear immediately, with no parasitic animation.
4 Answers
-
same here …
-
did you find a soluton to this?
-
Christian,
No, I didn't.
I belive that you can try creating a view with zero opacity and then, half second after, change the opacity back to 1, but I didn't try that and I personally hate such workarounds, so I'll just wait till this is sorted out.
-
Thanks. This has been fixed in head.