Extjs 可滚动面板 [英] Extjs scrollable panel
本文介绍了Extjs 可滚动面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个面板,可以在其中插入一些来自服务器的 HTML:
I have a panel where I insert some HTML from the server:
myPanel.update(response.responseText);
但如果此文本太大,则不会出现任何滚动条来导航文本.
But if this text is too big, none of the scrollbars appear to navigate the text.
如何在此面板中配置垂直滚动条?
How can I configure a vertical scrollbar in this panel?
这是我的面板定义:
{
xtype:'panel',
width: '100%',
height: 300,
id:'mypanel'
},
谢谢.
推荐答案
基本上你只需添加 autoScroll 属性如
Basically you would just add the autoScroll property like
autoScroll: true
这是一个有效的 JSFiddle
Here's a working JSFiddle
这篇关于Extjs 可滚动面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文