PDA

View Full Version : How to prevent panel's tbar from scrolling



mrtedweb
26 Aug 2010, 9:40 PM
I have a Panel component with a tbar. This Panel is contained within a TabPanel. When the Panel overflows, everything scrolls, including the tbar. Is there anyway to prevent the tbar from scrolling so that it is always visible at the top of the panel?


var centerRegion = new Ext.TabPanel({
region: 'center',
deferredRender: false,
border: false,
autoScroll: false
});

var tempPanel = new Ext.Panel({
border: false,
autoScroll: true,
tbar: {
border: false,
items: [ ... ]
},
items: [{
border: false,
autoScroll: true,
autoLoad: {
url: 'welcome/',
border: false,
layout: 'fit',
scripts: true,
nocache: true
}
}]
});

centerRegion.add({ title: 'Welcome', items: tempPanel });