Results 1 to 2 of 2

Thread: PR3 TabPanel - no method 'getAnimation'

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Abilene, Texas
    Posts
    17
    Vote Rating
    0
      0  

    Default PR3 TabPanel - no method 'getAnimation'

    Hi everyone,

    I've got a mobile app that uses 1.1 and works great. Now, I'm wanting to try out 2.0 PR3 but I'm having trouble with the getting started tutorial.

    I keep getting the following error:

    Uncaught TypeError: Object [object Object] has no method 'getAnimation'

    Now, I've read this similar post, and the "fix" stops the error from being thrown, but nothing appears on the screen.

    My code is below. Any pointers as to what I am doing wrong?

    Note: the alert() and console.log() statements execute perfectly and with the "fix" there are no errors, it's just that nothing appears on the screen.

    Code:
            new Ext.Application({
              name: 'Sencha',
    
              launch: function() {
                alert('test');
    
                console.log('launch called...');
    
                Ext.create("Ext.Panel", {
                  fullscreen: true,
    
                  layout: 'fit',
    
                  cls: 'touchodo-app-container',
    
                  items: [
                    { 
                      title: 'Home',
                      iconCls: 'home',
                      html: 'Welcome'
                    }
                  ]
                });                                                                                                                                                                                                                                                                                                                                                            
              }
            });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,421
    Vote Rating
    1271
      0  

    Default

    In PR3 this will work but this may change in PR4:

    Code:
    Ext.application({
        name: 'Sencha',
    
        launch: function() {
            Ext.create("Ext.Panel", {
                fullscreen: true,
                layout: 'fit',
                cls: 'touchodo-app-container',
                items: [
                    {
                        title: 'Home',
                        iconCls: 'home',
                        html: 'Welcome'
                    }
                ]
            });
        }
    });
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •