带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//