Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带extjs的滚动条_Extjs_Scroll_Extjs6 - Fatal编程技术网

带extjs的滚动条

带extjs的滚动条,extjs,scroll,extjs6,Extjs,Scroll,Extjs6,我想在第二个字段集中显示一个垂直滚动条,但字段集的高度似乎总是与其内容相适应。 可滚动参数不会改变任何内容 Ext.create('Ext.window.Window', { width: 800, height: 300, layout: { type: 'vbox', align: 'stretch' }, items: [{ xtype: 'fieldset', items: [{

我想在第二个字段集中显示一个垂直滚动条,但字段集的高度似乎总是与其内容相适应。
可滚动
参数不会改变任何内容

Ext.create('Ext.window.Window', {
    width: 800,
    height: 300,
    layout: {
        type: 'vbox',
        align: 'stretch'
    },
    items: [{
        xtype: 'fieldset',
        items: [{
            fieldLabel: 'foo',
            xtype: 'textfield'
        }]
    }, {
        xtype: 'fieldset',
        scrollable: 'y',
        items: [{
            fieldLabel: 'foo',
            xtype: 'textfield'
        }, {
            fieldLabel: 'foo',
            xtype: 'textfield'
        }, {
            fieldLabel: 'foo',
            xtype: 'textfield'
        }, {
            fieldLabel: 'foo',
            xtype: 'textfield'
        }, {
            fieldLabel: 'foo',
            xtype: 'textfield'
        }, {
            fieldLabel: 'foo',
            xtype: 'textfield'
        }, {
            fieldLabel: 'foo',
            xtype: 'textfield'
        }, {
            fieldLabel: 'foo',
            xtype: 'textfield'
        }, {
            fieldLabel: 'foo',
            xtype: 'textfield'
        }]
    }]
}).show();

对于secound fildset集合
flex:1
,可获得可见的滚动条。 然后,它将接收窗口容器的剩余高度

Ext.create('Ext.window.window'{
宽度:800,
身高:300,
布局:{
键入:“vbox”,
对齐:“拉伸”
},
项目:[{
xtype:“字段集”,
项目:[{
字段标签:“foo”,
xtype:'textfield'
}]
}, {
xtype:“字段集”,
可滚动:“y”,
弹性:1//