【发布时间】:2015-07-15 18:41:36
【问题描述】:
我有一个弹出窗口,它假设在centerPanel 中显示一封电子邮件(在 html 中)。该面板位于边框布局的center 区域中。
它绝对将autoscroll 设置为true,我知道我的测试数据比面板大得多。但我无法让它滚动。
是否有更好的设置方法?我尝试了一些其他对象,例如label、display、textarea 等作为center 面板中的一个项目,并将该对象设置为autoscroll : true,但没有成功
popup = new Ext.Window({
width: 900,
height: 320,
resizable: true,
draggable: true,
id: 'popupWindow',
layout: {
type: 'border'
},
items: [
// ...
{
xtype: 'panel',
region: 'center',
id: 'centerPanel',
autoscroll: true,
margin: '0 5 0 5',
html: jsonData.email
},
// ...
]
});
【问题讨论】:
标签: extjs panel autoscroll