Coen
14 Jan 2010, 3:11 AM
After an hour of tracing this bug down to it's core, I came up with the following code to reproduce it. I am using Ext 3.1.0.
Ext.onReady(function() {
var someForm = new Ext.FormPanel({
buttons: [
new Ext.Button({
text: "Some button",
handler: function() { }
})
]
});
var tab1 = new Ext.Panel({
title: "Some tab",
layout: "fit",
items: [
someForm
]
});
var tab2 = new Ext.Panel({
title: "Some tab II"
});
var someTabPanel = new Ext.TabPanel({
activeTab: 0,
items: [
tab1,
tab2
]
});
var someWindow = new Ext.Window({
width: 300,
height: 300,
items: [
someTabPanel
]
});
someWindow.show();
});
This opens a window with 2 tabs, with the first one opened by default. Switch to the second tab and close the window, the following error should occur.
this.dom is undefined ext-all-debug.js (line 2813)
return noBoxAdjust[(this.dom.tag..."").toLowerCase()] || Ext.isBorderBox;
The error disappears when removing the buttons property of someForm, supplying autoHeight = true to the config of someForm, or removing the layout of tab1. Probably others but I only tested those I thought were relevant to the issue.
Hope I didn't miss anything silly!
Ext.onReady(function() {
var someForm = new Ext.FormPanel({
buttons: [
new Ext.Button({
text: "Some button",
handler: function() { }
})
]
});
var tab1 = new Ext.Panel({
title: "Some tab",
layout: "fit",
items: [
someForm
]
});
var tab2 = new Ext.Panel({
title: "Some tab II"
});
var someTabPanel = new Ext.TabPanel({
activeTab: 0,
items: [
tab1,
tab2
]
});
var someWindow = new Ext.Window({
width: 300,
height: 300,
items: [
someTabPanel
]
});
someWindow.show();
});
This opens a window with 2 tabs, with the first one opened by default. Switch to the second tab and close the window, the following error should occur.
this.dom is undefined ext-all-debug.js (line 2813)
return noBoxAdjust[(this.dom.tag..."").toLowerCase()] || Ext.isBorderBox;
The error disappears when removing the buttons property of someForm, supplying autoHeight = true to the config of someForm, or removing the layout of tab1. Probably others but I only tested those I thought were relevant to the issue.
Hope I didn't miss anything silly!