Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    14
    Vote Rating
    1
    IatricDerekB is on a distinguished road

      0  

    Default Ext.window.Windows does not close in IE9

    Ext.window.Windows does not close in IE9


    Hi,

    I have the following function that opens a window. Everything works great, except when I click on the close icon, the window will not close. Only happens in IE9 (Chrome, FF, and Safari all close the window without issue).

    showToolbarDialog: function (url, title, height, width, offsetWidth, id) {
    var iframe = "<iframe width='100%' height='" + (height - offsetWidth).toString() + "px" + "' src=" + url + "></iframe>";


    var win = Ext.create("Ext.window.Window", {
    height: height,
    width: width,
    title: title,
    html: iframe,
    autoShow: false,
    modal: true,
    autoScroll: false,
    constrain: true,
    id: id,
    closeAction: 'destroy'
    });


    win.show();
    win.center();


    },

    Is there some kind of bug with closing a window in IE9? Or is the iframe throwing something off? I have other ExtJs applications which open windows and I have not seen this issue before.

    I am using 4.0.7.

    Thanks.

  2. #2
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    14
    Vote Rating
    1
    IatricDerekB is on a distinguished road

      1  

    Default modal

    modal


    Set modal to false and it works in IE9.

Tags for this Thread