我正在使用extjs构建门户,我有以下问题。图像大于选项卡的高度(在合适的大小上)。我想要的是在这个选项卡上添加一个垂直滚动条。我如何在extjs中做到这一点?
这是我代码的一部分:
items: [{
xtype: 'tabpanel',
activeTab: 0,
flex: 2,
items: [{
xtype: 'panel',
title: 'Images',
items: [{contentEl:'img',autoScoll: true,height:11200,overflowY : String }]
},{
xtype: 'panel',
title: 'Material',
items: [{contentEl:'msg',autoScoll: true,height:11200,overflowY : String }]
}]
}]谢谢。
发布于 2015-03-06 07:05:50
我可以在您的代码中看到autoScoll而不是autoScroll: true。这似乎是个错误。看看这个。
发布于 2015-03-09 13:15:00
尝试添加布局:fit和autoScroll:true。
发布于 2015-03-06 11:33:23
你试过这个-
overflowY: 'scroll'这是文件里写的-
“滚动”始终启用垂直滚动条(样式溢出-y:‘滚动’)。
http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.Component-cfg-overflowY
https://stackoverflow.com/questions/28893750
复制相似问题