abhinavchugh
31 Jul 2012, 10:16 PM
Version Ext js 4.0
Issue: hideHeaders property of Ext.panel.Panel is not working properly in border layout. This is the code i am using
Ext.require('*');
Ext.onReady(function(){
var panelHeaderlesscenter=Ext.create('Ext.panel.Panel',{
//title:'maincon',
hideHeaders: true,
collapsible: false,
region:'center',
margins: '5 0 0 0'
});
var panelHeaderlesssouth=Ext.create('Ext.panel.Panel',{
//title:'south',
hideHeaders: true,
region: 'south',
height: 150,
minSize: 75,
maxSize: 250,
cmargins: '5 0 0 0',
collapsible: true,
split: true,
collapsed:false
//floatable:true
});
var panelHeaderlessnorth= Ext.create('Ext.panel.Panel',{
//title: 'north',
hideHeaders: true,
region: 'north',
height: 150,
minSize: 75,
maxSize: 250,
cmargins: '5 0 0 0',
collapsible: true,
split: true,
collapsed:false
});
var panel1= Ext.create('Ext.panel.Panel',{
//title : 'main Panel',
hideHeaders: true,
renderTo:Ext.getBody(),
height:800,
width:1600,
layout:'border',
defaults: {
split: true,
bodyStyle: 'padding:15px'
},
items: [panelHeaderlessnorth,panelHeaderlesssouth,panelHeaderlesscenter],
margins: '5 0 0 0'
} );
})
I am adding the panelHeaderlesscenter,panelHeaderlessnorth,panelHeaderlesssouth in panel1 of border layout. I am giving the
hideHeaders:true
in panelHeaderlesscenter,panelHeaderlessnorth,panelHeaderlesssouth .On running this code I found that the panel in center has no header but panel in north and south still have header.
On further invesitgation, i found that "collapsible" feature has some relation with "hideheaders "property, when I changed the collapsible feature of panelHeaderlessnorth,panelHeaderlesssouth to false,header was removed from panelHeaderlessnorth,panelHeaderlesssouth panel. Is it a defect? i want the collapsibe feature in headerless panels.How can i achieve that?
Issue: hideHeaders property of Ext.panel.Panel is not working properly in border layout. This is the code i am using
Ext.require('*');
Ext.onReady(function(){
var panelHeaderlesscenter=Ext.create('Ext.panel.Panel',{
//title:'maincon',
hideHeaders: true,
collapsible: false,
region:'center',
margins: '5 0 0 0'
});
var panelHeaderlesssouth=Ext.create('Ext.panel.Panel',{
//title:'south',
hideHeaders: true,
region: 'south',
height: 150,
minSize: 75,
maxSize: 250,
cmargins: '5 0 0 0',
collapsible: true,
split: true,
collapsed:false
//floatable:true
});
var panelHeaderlessnorth= Ext.create('Ext.panel.Panel',{
//title: 'north',
hideHeaders: true,
region: 'north',
height: 150,
minSize: 75,
maxSize: 250,
cmargins: '5 0 0 0',
collapsible: true,
split: true,
collapsed:false
});
var panel1= Ext.create('Ext.panel.Panel',{
//title : 'main Panel',
hideHeaders: true,
renderTo:Ext.getBody(),
height:800,
width:1600,
layout:'border',
defaults: {
split: true,
bodyStyle: 'padding:15px'
},
items: [panelHeaderlessnorth,panelHeaderlesssouth,panelHeaderlesscenter],
margins: '5 0 0 0'
} );
})
I am adding the panelHeaderlesscenter,panelHeaderlessnorth,panelHeaderlesssouth in panel1 of border layout. I am giving the
hideHeaders:true
in panelHeaderlesscenter,panelHeaderlessnorth,panelHeaderlesssouth .On running this code I found that the panel in center has no header but panel in north and south still have header.
On further invesitgation, i found that "collapsible" feature has some relation with "hideheaders "property, when I changed the collapsible feature of panelHeaderlessnorth,panelHeaderlesssouth to false,header was removed from panelHeaderlessnorth,panelHeaderlesssouth panel. Is it a defect? i want the collapsibe feature in headerless panels.How can i achieve that?