PDA

View Full Version : Dificulties to close a “Ext.window.Window” in InternetExplorer 9



Bonomi
5 Oct 2012, 6:48 AM
I have a custom window created with ExtJs 4 and I found some dificulties to close it using the internet explorer 9. I try to close the window using the x button in the right top of the window and the majority of times it doesn't work. It works fine in chrome and firefox. Here is the code:


Ext.define('Mainstay.view.import.Window', {
extend: 'Ext.window.Window',
alias : 'widget.importWindow',
title: 'Import Records',
layout:'fit',
height: 590,
width: 900,
modal: true,
autoload: true,

initComponent: function(){
this.callParent(arguments);
}
});


Has anyone faced this problem?

crysfel
5 Oct 2012, 11:28 AM
The class looks fine, how are you creating the instance?

scottmartin
5 Oct 2012, 11:54 AM
Does this work? If not, is this only in IE9? Any other versions or other PC?



Ext.define('App.view.MyWindow', {
extend: 'Ext.window.Window',
height: 100,
width: 300,

bodyPadding: 10,

layout: {
align: 'stretch',
type: 'vbox'
},

title: 'My Window',

initComponent: function() {
var me = this;

Ext.applyIf(me, {
items: [
{
xtype: 'textfield',
fieldLabel: 'text'
}
]
});

me.callParent(arguments);
}

});

Ext.onReady(function(){

Ext.create('App.view.MyWindow', {
}).show();

});


Scott.

Bonomi
8 Oct 2012, 12:56 AM
I am calling the instance this way:


var win = Ext.create('Mainstay.view.import.Window', {items:{xtype:'importloaddataview'}});
win.show();

This problem happens with all IE versions and in other computers I have the same behaviour.

Bonomi

scottmartin
8 Oct 2012, 6:02 AM
Does my example work for you?
Have you tried your code by removing your custom xtype?

We will need more info or a working example.

Scott.