PDA

View Full Version : Component in a collapsed panel losing height value



rafaelrp
18 Apr 2012, 9:43 AM
I have a collapsed panel calling other php file with a toolbar, if i change the collapsed config to false ext render the toolbar correctly but if collapsed is true when i expand this panel, toolbar doesn't render correctly, firebug returns the height of the toolbar with "6px".

panel:


{
region : 'east',
id : 'eastPanel',
title : 'Panel',
xtype : 'panel',
autoWidth : true,
collapsible : true,
collapsed : true,
titleCollapse : true,
width : 50,
//html : '',
autoLoad: {
url: 'camadas/lst_camadas.php',
params: '',
scripts: true
}
},


toolbar:


Ext.create('Ext.toolbar.Toolbar', {
id : 'toolbarPlaca',
renderTo : 'toolbarPlaca',
autoWidth : true,
height : 28,
items : [
'->',
{
text : '<?=utf8_decode("options")?>',
iconCls : 'gear_in',
menu : [
{
text : 'comands',
iconCls : 'computer_go',
handler : function(){
Ext.Msg.alert("<?=utf8_decode("Atenção")?>", "<?=utf8_decode("Comando Enviado!")?>");
}
}
]
}
]

});



Thanks ! ~o)

scottmartin
27 Apr 2012, 9:38 AM
What version of ExtJS are you using? 4.07 or 4.1? Have you tested 4.1 if not?
What is the layout of your parent container?

We may need a small working example to replicate this.

Regards,
Scott.