Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7917 in a recent build.
  1. #1
    Sencha Premium Member Nxs's Avatar
    Join Date
    Mar 2012
    Posts
    43
    Vote Rating
    2
    Nxs is on a distinguished road

      0  

    Exclamation Ext.Msg.alert inside a Ext.Msg.prompt launched from a modal window causes a ZIndex pb

    Ext.Msg.alert inside a Ext.Msg.prompt launched from a modal window causes a ZIndex pb


    Ext version tested:
    • Ext 4.1.3 rev 125
    Browser versions tested against:
    • Chrome 23.0.1271.95 m
    • Maybe in all others..
    Description:
    • From a modal window, if you use a Ext.Msg.prompt and in the callback you use a Ext.Msg.alert, the alert is displayed behind all others windows
    Steps to reproduce the problem:
    • Create a simple modal window with a button
    • When the button is clicked, prompt a message and in the callback display an alert...
    The result that was expected:
    • The alert should be displayed above all others windows
    The result that occurs instead:
    • The alert is displayed behind all others windows
    Test Case:

    Code:
    Ext.create('Ext.window.Window', {
        modal: true,
        title: 'This is a simple modal window...',
        items: [
            {
                xtype: 'button',
                text: 'Click Me',
                listeners: {
                    click: function (b){
                        Ext.Msg.prompt('Name', 'Please enter your name:', function(btn, text){
                            if (btn == 'ok'){
                                // process text value and close...
                                Ext.Msg.alert('This is my alert', 'Why this alert is displayed behind all others ???');
                            }
                        });
                    }
                }
            }
            ]
    }).show();

    HELPFUL INFORMATION

    Screenshot or Video:

    Bug.png

    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • Win7 x64

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,575
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1

Tags for this Thread