PDA

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



Dafram
26 Jun 2012, 3:01 AM
Hi,

I have a new problem.

I open a Window with a Form inside.



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.



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):

36536

Why?

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

scottmartin
27 Jun 2012, 12:57 PM
This has already been reported: EXTJSIV-5957

Thank you,
Scott.

Dafram
28 Jun 2012, 12:17 AM
This has already been reported: EXTJSIV-5957

Thank you,
Scott.

Thanks, so there is not yet a solution? Or a fix is possible?

scottmartin
28 Jun 2012, 6:04 AM
In reviewing the ticket, it seems to be slated for 4.2 release.

Regards,
Scott.