Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked April 6th 2010 by Igor Afanasyev
  • 1.2
  • animation
  • bug
  • iphone
  • view
0 Comments

4 Answers

  • same here …

    — answered April 6th 2010 by Christian Sigl
    permalink
    0 Comments
  • did you find a soluton to this?

    — answered April 6th 2010 by Christian Sigl
    permalink
    0 Comments
  • 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.

    — answered April 6th 2010 by Igor Afanasyev
    permalink
    0 Comments
  • Thanks. This has been fixed in head.

    — answered April 8th 2010 by Jeff Haynie
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.