1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    29
    Answers
    2
    Vote Rating
    1
    Dafram is on a distinguished road

      0  

    Default Answered: [4.1] MessageBox after Window.show() doesn't take focus

    Answered: [4.1] MessageBox after Window.show() doesn't take focus


    Hi,

    I have a new problem.

    I open a Window with a Form inside.

    Code:
            var frmRegola = Ext.create('Ext.form.Panel', {
                id: 'id_frmRegola',
                url: 'frmRegolaSubmit.php',
                frame: 'true',
                bodyStyle: 'padding:5px 5px 0',
                items: [fDescri,cbTipologia]
            });
    
            var winRegola = Ext.create('Ext.window.Window', {
                id: 'id_winRegola',
                   title: 'Regola',
                   layout: 'fit',
                height: 140,
                width: 800,
                border: 0,
                modal: true,
                resizable: false,
                buttons: [
                      { text: 'Salva',   scale: 'medium', iconCls: 'buttonicon_save',   handler: wRegola_salva },
                    { text: 'Annulla', scale: 'medium', iconCls: 'buttonicon_cancel', handler: wRegola_annulla }
                ],
                buttonAlign: 'center'
            });
            
            winRegola.add(frmRegola);
            winRegola.show();
    Then, when I press the SAVE button, I submit the Form and, after, I show a MessageBox with the result of the operation.

    Code:
            function wRegola_salva()
            {
                frmRegola.getForm().submit({
                    waitTitle: 'Attendere',
                    waitMsg:   'Salvataggio Regola in corso...',
                    success: function(form,action)
                    {
                        esito = Ext.JSON.decode(action.response.responseText);
    
                        if (esito.success)
                        {
                            var msg = Ext.Msg.show({
                                title:   'Messaggio',
                                msg:     esito.msg,
                                buttons: Ext.Msg.OK,
                                icon:    'msgicon_info'
                            });
                        }
                        else
                        {
                            var msg = Ext.Msg.show({
                                title:   'Errore',
                                msg:     esito.msg,
                                buttons: Ext.Msg.OK,
                                icon:    'msgicon_error'
                            });
                        }
                    },
                    failure: function(form,action)
                    {
                        var msg = Ext.Msg.show({
                            title:   'Errore',
                            msg:     'Errore durante il Salvataggio Regola!',
                            buttons: Ext.Msg.OK,
                            icon:    'msgicon_error'
                        });
                    }
                });
            }
    But the MessageBox is BEHIND my Window (modal: true):

    msg.png

    Why?

    In ExtJS 4.0.7 I didn't have this issue...

  2. In reviewing the ticket, it seems to be slated for 4.2 release.

    Regards,
    Scott.

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,884
    Answers
    653
    Vote Rating
    440
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    This has already been reported: EXTJSIV-5957

    Thank you,
    Scott.

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    29
    Answers
    2
    Vote Rating
    1
    Dafram is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    This has already been reported: EXTJSIV-5957

    Thank you,
    Scott.
    Thanks, so there is not yet a solution? Or a fix is possible?

  5. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,884
    Answers
    653
    Vote Rating
    440
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    In reviewing the ticket, it seems to be slated for 4.2 release.

    Regards,
    Scott.

Thread Participants: 1

Tags for this Thread