Results 1 to 5 of 5

Thread: No callback for Ext.Anim ??

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-956 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default No callback for Ext.Anim ??

    Can it really be true that there is no callback available for animations in Sencha Touch 2?

    'before' is written in the console, but 'after' is not. I'm aware that the property after does not appear in the documentation, but i was hoping it was a mistake..

    Code:
    Ext.Anim.run(Ext.get("infoBar"),'slide',{
    direction: 'down',
    duration: 200, before: function(){
    console.log("before");
    },
    after: function(){
    console.log("after");
    }
    });

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

    Default

    Looking at the Ext.Anim source, it is listening for the webkitTransitionEnd event to fire the after function.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default

    Hey Mitchell

    The event doesn't seem to be called in neither

    - Safari version 5.1.1 (7534.51.22)

    - Google Crome 15.0.874.106

    The same problem seems to occur in Sencha Touch 1.0
    http://www.sencha.com/forum/showthre...ot-always-fire

    Is this a bug? and is there a way to fix it?

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

    Default

    I've had after firing on ST 1.1.0 I know for a fact but I am moving this to the bugs forum and pushing to our bug tracker.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

  5. #5
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    This class has not been touched in ST2 yet as the way animations work is changing.

    In PR3, you can use something something like this:

    Code:
    Ext.Animator.run({
        element  : panel.element,
        xclass   : 'Ext.fx.animation.SlideIn',
        direction: 'left',
        duration : 500,
        onEnd: function() {
            console.log('onEnd');
        }
    });
    However, chances are, this WILL change before the final release.

    Edit:

    FYI, i've fixed your issue anyway for the next release.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Tags for this Thread

Posting Permissions

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