Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-738] opening a window in app.js is animated, while no animation is set since 1.2.0

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:05.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.3.0
ComponentsiOS
Labelsanimation, ios, iphone
ReporterChristian Sigl
AssigneeReggie Seagraves
Created2011-04-15T02:35:26.000+0000
Updated2011-04-17T01:54:05.000+0000

Description

bug is described here: https://developer.appcelerator.com/question/12361/in-12-sdk-opening-a-window-with-the-contained-view-will-animate-the-view"> https://developer.appcelerator.com/question/12361/in-12-sdk-opening...

this code should display the described bug too:


// CREATE MAIN WINDOW

Titanium.UI.setBackgroundColor('#363636');

var startupWindow = Titanium.UI.createWindow({ 

    backgroundColor: '#fff',
    top: 0,
    left: 0

});

var startupView = Titanium.UI.createImageView({

    url: 'Default.png'

});

startupWindow.add(startupView);

var heartView = Ti.UI.createView({

    top: 80,
    left: 30,
    width: 265,
    height: 240,
    backgroundColor: 'transparent'

});

startupView.add(heartView);

var linkView = Ti.UI.createView({

    top: 370,
    left: 30,
    width: 265,
    height: 20,
    backgroundColor: 'transparent'

});

startupView.add(linkView);

startupWindow.open();

Comments

  1. Jeff Haynie 2011-04-15

    running on head, i cannot reproduce the above code or the original code pasted in the original post.

  2. Jeff Haynie 2011-04-15

    Never mind, I was able to reproduce it now.

  3. Christian Sigl 2011-04-15

    would it help, if i send you the complete project? maybe it somehow depends on the "Default.png" i'm using for the splash-screen

  4. Jeff Haynie 2011-04-15

    OK - this seems to be related to Orientation Changes that were fixed in 1.2.

  5. Jeff Haynie 2011-04-15

    OK - this seems to be related to Orientation Changes that were fixed in 1.2.

  6. Jeff Haynie 2011-04-15

    (from [1d06fb3c5d9b1da6af254f730521c5a2d2b52701]) -[#738 state:resolved] fixed problem with initial premature animation on initial window -fixed 3.1 build issue http://github.com/appcelerator/titanium_mobile/commit/1d06fb3c5d9b1da6af254f730521c5a2d2b52701"> http://github.com/appcelerator/titanium_mobile/commit/1d06fb3c5d9b1...

  7. Christian Sigl 2011-04-15

    could you please point me to information how to compile the current git-source on osx, as i need this patch to be able to submit my app. thanx for fixing this bug that fast, you are doing a great job with titanium mobile!

  8. Jeff Haynie 2011-04-15

    You'll need the following to build:

    • Scons (Python package)
    • Git
    • Android SDK
    • iPhone 3.2 SDK

    Then run from terminal:

       > git clone git://github.com/appcelerator/titanium_mobile.git
       > scons
       

    After you build (assuming successful), will place zip file in dist folder.

    Unzip that file into your /Library/Application Support/Titanium

  9. Christian Sigl 2011-04-15

    i had succees in building it. maybe you should add this to the docs of titanium mobile in the developer section of your website

    thanx for your support!!!

JSON Source