PDA

View Full Version : hidden + IE6



Thylia
1 Dec 2009, 8:09 AM
Hello,

I have a problem with the display as ie6 of container.
I first create the FitLayout to hidden


{
id:'tpts-container',
// hidden: true,
layout: 'form',
items:[{
layout: 'fit',
hidden: true,
// renderHidden: true,
id:'tpts-container-0'
},{
layout: 'fit',
hidden: true,
// renderHidden: true,
id:'tpts-container-1'
},{
layout: 'fit',
hidden: true,
// renderHidden: true,
id:'tpts-container-2'
},{
layout: 'fit',
hidden: true,
// renderHidden: true,
id:'tpts-container-3'
},{
layout: 'fit',
hidden: true,
// renderHidden: true,
id:'tpts-container-R'
}]
}


Here is the form that will be added later.


var cTpt = [{
layout:'column',
id:'tpt'+rang+'-container',
items:[{
width:160,
labelWidth:45,
layout:'form',
items:Demande.srv0List
},{
// width:310,
width:635,
hideLabels:true,
layout:'form',
items:libField
},{
width:50,
layout:'form',
items:delBtn
}]
}];


And finally I do show.


Ext.getCmp("tpts-container-0").show();
Ext.getCmp("tpts-container-0").add(cTpt);
Ext.getCmp("tpts-container-0").doLayout();

Thylia
2 Dec 2009, 3:45 AM
bump

LutzAlbers
2 Dec 2009, 4:34 AM
If I understand your code correctly then you want to dynamically add/show subpanels to your main panel. Why don't you use the add/insert/remove methods of the main panel instead ?

Animal
2 Dec 2009, 5:33 AM
fit layout sizes its child item to fit its own size.

What is the defined height/width of tpts-container-0?

I would configure those with hideMode: 'offsets'

Also, don't use a Panel where you only need a Container:



var cTpt = [{
layout:'column',
xtype: 'container',
defaultType: 'container',
id:'tpt'+rang+'-container',
items:[{
width:160,
labelWidth:45,
layout:'form',
items:Demande.srv0List
},{
// width:310,
width:635,
hideLabels:true,
layout:'form',
items:libField
},{
width:50,
layout:'form',
items:delBtn
}]
}];

Thylia
3 Dec 2009, 3:47 AM
Thanks you Animal.
hideMode: 'offsets' and xtype: 'container' resolved my problems
I have another prolems : http://www.extjs.com/forum/showthread.php?t=86877