[CLOSED] message box rendering behind the modal window

  1. #1

    [CLOSED] message box rendering behind the modal window

    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
    Last edited by Daniil; Aug 16, 2012 at 5:15 PM. Reason: [CLOSED]
  2. #2
    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.
    Geoffrey McGill
    Founder
  3. #3
    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);
  4. #4
    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

Similar Threads

  1. Replies: 1
    Last Post: Aug 10, 2012, 1:09 PM
  2. Replies: 5
    Last Post: Apr 20, 2012, 6:20 AM
  3. [CLOSED] Ext.Window: Question about clicking outside a modal Window
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 07, 2012, 6:00 AM
  4. [CLOSED] X.Msg with Modal Window
    By jwf in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 20, 2011, 9:22 PM
  5. Modal Window
    By erey in forum 1.x Help
    Replies: 0
    Last Post: Mar 29, 2010, 12:06 PM

Posting Permissions