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

Aug 09, 2012, 11:39 PM

I have a message box displayed using the code below.

title: "title",
msg: "text messge",
buttons: { ok: "Ok" },
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

Aug 10, 2012, 1: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.

Aug 10, 2012, 3: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 () {

Aug 10, 2012, 4: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