【发布时间】:2016-07-27 22:14:55
【问题描述】:
我有一个 Ext 窗口,其中有两个项目容器和字段集。对于容器和字段集,我从服务器获取 html 形式的数据。
如果这个数据很大,滚动条出现并不能完全导航文本。
如何在此面板中正确配置垂直滚动条?
我的示例代码是:
Ext.create('Ext.window.Window', {
title: 'DataSet',
bodyPadding: 5,
modal: true,
height: 600,
width: 900,
layout: 'fit',
items: {
xtype: 'form',
items: [{
xtype: 'container',
html: jsonData.R.ErrorMsg || ''
}, {
xtype: 'fieldset',
padding: '5 0 10 0',
collapsible: true,
title: 'Description',
autoScroll: true,
height: 580,
width: 880,
collapsed: true,
overflowY: 'scroll',
html: Ext.String.htmlEncode(jsonData.R.ErrorDesc) || ''
}]
}
})
【问题讨论】:
-
用示例数据制作一个小提琴:fiddle.sencha.com。
标签: javascript html user-interface extjs