I need a scroll bar for ExtJs viewport, remark autoScroll=true doesn’t work as viewport doesn’t support scrollbar. So maybe I need some outer container which will enable scrolling for whole viewport.
The sample code is as:
layoutPanel = new Ext.Viewport({
layout: 'border',
border: false,
items: [
new Ext.Panel({
id: 'mainCenterPanel',
region: 'center',
border: false,
layout: 'border',
items: [
new Ext.Panel({
id: 'configPanelContainer',
region: 'north',
border: false,
height: 50,
layout: 'border',
items: [
new Ext.Panel({
region: 'north',
border: false,
contentEl: 'filterBar',
bodyStyle: 'padding:20px 20px 20px 20px'
}),
new Ext.Panel({
region: 'center',
layout: 'fit',
border: false,
bodyStyle: 'padding:0px 20px 20px 20px',
items: heatMapConfigsPanel
})
]
}),
new Ext.Panel({
id: 'heatmapChartPanel',
region: 'center',
border: false,
contentEl: 'analysisContainer',
})
]
})
]
});
though viewport doesn’t support
autoScroll=true, but we can still use it by manually setting width for child panel mainCenterPanel on re size, which forces viewport to show the content by scroll.