PDA

View Full Version : [OPEN] [#46] TabPanel Firing Error



softmachine2011
Sep 19, 2012, 3:41 PM
Hi,

With the latest build (rev. 4359) which includes Ext.JS 4.1.2 I found a new bug.
When you open a tab dinamycally, and close it, if you will open a new tab, or close any existing tab it throws an exception.

TEST CASE


<script type="text/javascript">
function openTab(url) {
if (Ext.isEmpty(url, false)) {
return;
}

var tp = Ext.getCmp("sampleTabPanel");
var tabId = url;
var tab = tp.getComponent(tabId);

if (!tab) {
tab = tp.add({
id: tabId,
iconCls: 'icon-colorwheel',
title: 'My Tab',
closable: true,
closeAction: 'close',
loader: {
url: url,
renderer: 'frame',
noCache: true,
loadMask: {
showMask: true,
msg: 'Loading new tab...'
}
}
});

tp.setActiveTab(tab);

tab.addListener('activate', tab.syncSize);

} else {
tp.setActiveTab(tab);
tab.fireEvent('activate');
Ext.get(tab.tab.el).frame();
}
}
</script>
<ext:Button runat="server" Text="Open Tab" Icon="ColorWheel">
<Listeners>
<Click Handler="openTab('/Area/Sample/Detail');" />
</Listeners>
</ext:Button>
<ext:TabPanel ID="sampleTabPanel" runat="server" />


Steps:
1-Open Tab
2-Close Tab
3-Open Tab (it crashes, it says that firing is undefined)

Vladimir
Sep 19, 2012, 3:59 PM
It is same issue like in the following thread
http://forums.ext.net/showthread.php?21093-V2-1-Desktop-Window-Close-and-Move

Please update from SVN to get temp fix

softmachine2011
Sep 19, 2012, 4:02 PM
And when you would release a permanent fix? Because if it is early I could wait.

Vladimir
Sep 19, 2012, 4:05 PM
The problem is related with ExtJS EventManager, we will report the problem (after preparing sample to reproduce)
But i don't thinks that they include own fix prior 4.2

Therefore if you need to use 4.1.2 then please use temp fix or revert to 4.1.1

softmachine2011
Sep 19, 2012, 4:29 PM
Ok, with rev 4360 seems to work right but possibly this fix will increase memory leak as I understand.

Thanks for the fix.

Vladimir
Sep 19, 2012, 4:35 PM
No, the issue is not related with memory leaking
Memory leaking is related with iframe using (not iframe events)

Baidaly
Nov 17, 2012, 2:15 AM
Opened an Issue to track this defect, see

https://github.com/extnet/Ext.NET/issues/46

Also, there is other thread with the same problem: http://forums.ext.net/showthread.php?21093-CLOSED-V2-1-Desktop-Window-Close-and-Move

Daniil
Dec 18, 2012, 1:41 PM
Just for references.
http://www.sencha.com/forum/showthread.php?243166

The bug is still opened. We will keep monitoring.