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'



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.