keyra
8 Jan 2010, 1:18 PM
Hi All,
I'm working with ExtJS 3.1 since some weeks ago and I have found an error during my development. Here is a sample code with the issue:
var userForm = new Ext.FormPanel({
items:
[{
xtype: 'textfield',
fieldLabel: 'Test'
}],
buttons:
[{
text: 'add'
},
{
text: 'cancel',
hidden: true
}]
});
new Ext.Window({
layout:'fit',
width:300,
height:100,
closable: true,
items: [userForm],
title: 'Add'
}).show();
The issue occurs when the window is closed: "this.dom is undefined".
The ExtJS source code involved is:
isBorderBox : function(){
return noBoxAdjust[(this.dom.tagName || "").toLowerCase()] || Ext.isBorderBox;
},
After some testing, it seems that the issue is linked to the options layout: fit and the hidden button. Note that if we remove the first button (which is displayed), the error is not raised.
As I'm a new width extjs, I would like to know if the issue is normal or if it is really a bug ?
Thanks in advance for your answer.
K.
I'm working with ExtJS 3.1 since some weeks ago and I have found an error during my development. Here is a sample code with the issue:
var userForm = new Ext.FormPanel({
items:
[{
xtype: 'textfield',
fieldLabel: 'Test'
}],
buttons:
[{
text: 'add'
},
{
text: 'cancel',
hidden: true
}]
});
new Ext.Window({
layout:'fit',
width:300,
height:100,
closable: true,
items: [userForm],
title: 'Add'
}).show();
The issue occurs when the window is closed: "this.dom is undefined".
The ExtJS source code involved is:
isBorderBox : function(){
return noBoxAdjust[(this.dom.tagName || "").toLowerCase()] || Ext.isBorderBox;
},
After some testing, it seems that the issue is linked to the options layout: fit and the hidden button. Note that if we remove the first button (which is displayed), the error is not raised.
As I'm a new width extjs, I would like to know if the issue is normal or if it is really a bug ?
Thanks in advance for your answer.
K.