PDA

View Full Version : [CLOSED] message box rendering behind the modal window



SymSure
Aug 10, 2012, 12:39 AM
Hi,

I have a message box displayed using the code below.



Ext.Msg.show({
title: "title",
msg: "text messge",
buttons: { ok: "Ok" },
icon:Ext.Msg.ERROR,
closable: false
});

it renders behind the modal window that calls it. this code worked perfectly for us in V1.

How can this issue be resolved

geoffrey.mcgill
Aug 10, 2012, 2:35 AM
Please post a simplified .aspx code sample demonstrating how to reproduce this scenario. Please do not include code in the .aspx that is unrelated to the problem.

SymSure
Aug 10, 2012, 4:08 PM
this is a bug. I have been able to resolve this using the zindexmanager as shown in the code below.
I have added a delay before bringing it to front else it will not work.



var messagebox= Ext.Msg.show({
title: config.Title,
msg: config.Message,
buttons: { ok: config.ButtonOk },
icon: icon,
closable: false
});

Ext.Function.defer(function () {
messagebox.zIndexManager.bringToFront(messagebox);
},100);

Vladimir
Aug 10, 2012, 5:12 PM
I cannot reproduce the issue
Generally, manual z-index is not required because ZIndexManager automatically set required index for windows

Please post a sample reproduces the issue