Grid extjs5网格&x27;s滚动条在边框布局面板中不起作用

Grid extjs5网格&x27;s滚动条在边框布局面板中不起作用,grid,scrollbar,extjs5,gridpanel,Grid,Scrollbar,Extjs5,Gridpanel,在border layout面板中,网格的滚动条无法正常工作,即使网格的存储足够长,足以使网格溢出 如果我的网格位于无边框布局面板中,则滚动条正常,但当我将网格置于边框布局面板中时,要么没有滚动条,要么滚动条无效 { // what i want is to make this grid to scroll ! the scroll-bar is nested in a border layout panel. xtype: 'grid', ti

在border layout面板中,网格的滚动条无法正常工作,即使网格的存储足够长,足以使网格溢出

如果我的网格位于无边框布局面板中,则滚动条正常,但当我将网格置于边框布局面板中时,要么没有滚动条,要么滚动条无效

{
        // what i want is  to make this grid to scroll ! the scroll-bar is nested in a border layout panel.
        xtype: 'grid',
        title: 'west bottom grid(I am begging for your scrollbar !)',
        columns: [{
            text: 'header',
            dataIndex: 'header'
        }],
        store: Ext.create('MyApp.OverflowStore'), //this store is long enough to make the grid overflow
        autoScroll: true
    }
完整代码:参见sencha fiddle:


如果有人能为网格提供一个正确的滚动条?

您应该确保为组件的容器设置布局,并确保像网格这样的容器具有弹性值,以便正确分配空间。
那太正确了。将布局设置为正确的值非常重要。不仅如此,如果您对任何面板使用DOCK属性,甚至需要考虑使用它的方式。