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)
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)