PDA

View Full Version : [UNKNOWN][3.1] Collapse BUG with IE 6+



frankai5
30 Dec 2009, 8:21 PM
Hello,

It seems that there is a problem when we try to open a window that has already been collapsed using the configuration parameters...this happens in any version of Internet Explorer, I don't know if there is something wrong in the attached code example from EXTJS demos (you can try it to replicate the issue)...

Any ideas to fix the problem?

Thanks!
Frankai




/*!
* Ext JS Library 3.1.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.onReady(function(){
var win;
var button = Ext.get('show-btn');

button.on('click', function(){
// create the window on the first click and reuse on subsequent clicks
if(!win){
win = new Ext.Window({
applyTo:'hello-win',
layout:'fit',
width:500,
height:300,
closeAction:'hide',
plain: true,
animCollapse:true,
expandOnShow:false,
collapsible: true,
collapsed:true,
items: new Ext.TabPanel({
applyTo: 'hello-tabs',
autoTabs:true,
activeTab:0,
deferredRender:false,
border:false
}),

buttons: [{
text:'Submit',
disabled:true
},{
text: 'Close',
handler: function(){
win.hide();
}
}]
});
}
win.show(this);
});
});

Condor
2 Jan 2010, 12:46 AM
Yes, this seems to be a bug.

Your example does however have an (unrelated) bug:
You can't use 'applyTo' inside a layout. You should use 'el' instead of 'applyTo' for the tabpanel.

frankai5
3 Jan 2010, 12:02 PM
Hi,

Thanks, yes, it seems that it doesn't expand/collapse well under IE, do you have any quick fix or workaround for it? We are evaluating ExtJS to see if we could use it for our project and sadly, IE6+ compatiblity is important for us...

Thanks in advance,

Frankai

Condor
4 Jan 2010, 12:22 AM
You could create the window with collapsed:false and collapse() the window in the afterrender event.

(this all happens because a collapsed window has no size, so some components inside the window are initiated with the wrong size)

Jamie Avins
4 Jan 2010, 9:01 AM
We are looking at addressing this issue in a new release shortly.