Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    9
    Vote Rating
    0
    shakti2038 is on a distinguished road

      0  

    Default MessageBox displayed behind window

    MessageBox displayed behind window


    Hi all
    I created login window. in which I added forgot password button. That button opens a new window. When i show status of the password reset in a MessageBox the messagebox goes at the back of the ForgotPassword window. This problem is coming in ext version 4.1.0, the same problem does not come in ext version 4.0.7

    code:
    Code:
    onBtnRequestPwdClick: function(button, e, options) {
            var reqfrm=(Ext.ComponentQuery.query('form[id=pwdFrm]')[0]);
            var frm=reqfrm.getForm();
            if(frm.isValid()) {
                frm.submit({
                    url: frm.url,
                    scope:frm,
                    waitMsg:Ext.LANG.app.Processing,
                    success: function(form,o) {
                        var cmp=Ext.ComponentQuery.query('window[id=pwdWin]')[0];
                        Ext.Msg.show({
                            title:Ext.LANG.app.AppTitle,
                            msg:o.result.data,
                            modal:true,
                            icon:Ext.Msg.INFO,
                            buttons:Ext.Msg.OK
                        });
                        cmp.close();
                    },
                    failure: function(form,o) {
                        Ext.Msg.show({
                            title:Ext.LANG.app.AppTitle,
                            msg:o.result.data,
                            modal:true,
                            icon:Ext.Msg.ERROR,
                            buttons:Ext.Msg.OK,
                            toFrontOnShow:true,
                            focusOnToFront:true,
                        });
                        
                    }
                });
            }
        },

  2. #2
    Sencha User
    Join Date
    Mar 2008
    Location
    Brasil
    Posts
    31
    Vote Rating
    3
    Erico is on a distinguished road

      0  

    Default


    this also happens to me

  3. #3
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    176
    Vote Rating
    0
    kagupta@quark.com is on a distinguished road

      0  

    Default


    Hi,
    Am facing similar issue in ExtJS 4.1.
    Have you found any solution for this?
    Thanks
    Kapil

  4. #4
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    9
    Vote Rating
    1
    Limech is on a distinguished road

      0  

    Default


    We also have this problem in a big ext-application. This works for us:

    Code:
    Ext.Msg.goToTop = function() {
        if(this.active) {
            Ext.Msg.toFront();
            Ext.defer( Ext.Msg.goToTop, 100, this);
        }
    };
    
    Ext.Msg.on('activate', function () {
        this.active = true;
        Ext.defer( Ext.Msg.goToTop, 100, this);
    });
    
    Ext.Msg.on('deactivate', function () {
        this.active = false;
    });

Thread Participants: 3

Tags for this Thread