kwcto
kwcto

Reputation: 3504

Globally disable Ext JS Animations

I'm testing an intranet web app in an iPad but the animations to open "windows" and show message boxes are horribly slow.

I've tried setting the global Ext.enableFx to false, and confirmed that flag is still false after page load in Firebug. The animations are still occurring though so I must be doing something wrong.

Thanks...

Upvotes: 0

Views: 1916

Answers (1)

Brian Moeskau
Brian Moeskau

Reputation: 20431

When you show a window, the second (optional) argument to show() is the target to animate from. Omit that and you should not get the animation.

EDIT:

Not tested, but glancing at the Window code you should be able to do this (put it after your Ext includes and before your app code):

Ext.override(Ext.Window, {
    animShow: function(){
        this.afterShow();
    },
    animHide: function(){
       this.el.hide();
       this.afterHide();
    }
});

Upvotes: 1

Related Questions