PDA

View Full Version : Panel scrollbars issue



drkarkera
27 Nov 2007, 4:59 AM
Hi,

My page has a left pane with 2 panels - the north region contains a formpanel and is collapsible. The centre region contains a treepanel with scrollbars. The problem occurs when I collapse the filter panel. I expect the treepanel height to adjust accordingly. This is not happening and I see a border at the bottom besides the scrollbar shifting moving up. Can someone please point out the error ?


{
region:'west',
contentEl: 'west',
title:"Summary",
width:230,
minWidth: 220,
split:true,
collapsible:true,
titleCollapse:true,
animate:true,
items: [{
region:'north',
contentEl: 'filters',
title:' Filters',
collapsible:true,
titleCollapse:true,
iconCls:'nav',
animate:true,
items: Ext.getCmp('Filters')
},{
region:'center',
contentEl: 'tree',
height:300,
items: Ext.getCmp('summaryTree')
}]
}

var summaryTree = new Ext.tree.TreePanel({
id:'summaryTree',
animate: true,
loader: loader,
enableDD: false,
autoScroll:true, width:230,
height:300,
border:false,
root: new Ext.tree.AsyncTreeNode({
text: 'My Tasks',
draggable: false,
id: 'source'
})
});