Results 1 to 2 of 2

Thread: [CLOSED]Component.onShow and Component.onHide overwrite the animation.after function

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2007

    Default [CLOSED]Component.onShow and Component.onHide overwrite the animation.after function

    It would be nice if those methods wouldn't overwrite the .after function passed in the animation config.

    For example, the following example will never call the after function.

    myComponent.hide({type: 'pop', after: function() { ... }});
    Inside Component.js the code for adding the after handler in onHide should be something like:
    var after = function() {
    if (hideConfig.after) 
        hideConfig.after = after.createInterceptor(hideConfig.after, hideConfig.scope||this);
        hideConfig.after = after;
    This will call the after function before calling the existing animation.after function
    The same should be done in the onShow function.


  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia


    This is actually already the case, you should see it in the next release.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Replies: 2
    Last Post: 1 Jul 2010, 7:26 AM
  2. Shift animation on component
    By mitchellsimoens in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 12 Sep 2009, 6:28 AM
  3. How can I add a new function to an existing component?
    By anakonda8472 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 1 Mar 2008, 2:05 AM

Posting Permissions

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