PDA

View Full Version : IE6 Layout column wrong calculates width



col
28 Jan 2010, 5:28 AM
Ext.onReady(function(){

new Ext.Panel({
tbar:[{
text: 'B1', handler:function(){
win.items.each(function(item){item.hide()});
f1.show();
win.setWidth(300);
win.show();
}
},{text: 'B2',handler:function(){
win.items.each(function(item){item.hide()});
f2.show();
win.setWidth(600);
win.show();
}
}]
,width:300
,renderTo:Ext.getBody()
});

win = new Ext.Window({
modal:true
,resizable:false
,defaults:{
hideMode:'offsets' // fix width combobox, triggerfield
}
,closeAction:'hide'
,keys:[{key:27,fn:function(){win.hide()}}]
});

f1 = new Ext.FormPanel({height:100, frame:true})

f2 = new Ext.FormPanel({
layout:'column'

,defaults:{
columnWidth:.5
,frame:true

,defaults:{
frame:true
,layout:'column'

,defaults:{
columnWidth:.5
,frame:true
}
}
}
,items:[{
//left col
items:[{
items:[{},{}]
}]
//right col
},{
items:[{
items:[{},{}]
}]
}]
});

win.add(f1);
win.add(f2);

})

If press B1 then press B2 we get this:
http://www.extjs.com/forum/attachment.php?attachmentid=18450&stc=1&d=1264532986

but was expected this:
http://www.extjs.com/forum/attachment.php?attachmentid=18451&stc=1&d=1264532986

check on Ext 2.2.1, 3.1.0

demo bug (IE6 only)
http://radiomarket.info/__ext.html

col
4 Feb 2011, 9:36 AM
I rechecked this bug in IE 6 & 8 on ExtJS 3.3.0, it still is.

anyone have any ideas ?