[英]How to remove horizontal scroll from grid?
I have a Grid Panel in ExtJs 3.4 app: 我在ExtJs 3.4应用程序中有一个网格面板:
kad_tab = new Ext.ux.grid.livegrid.GridPanel({
store: store,
region: 'center',
cm: cm,
selModel: new Ext.ux.grid.livegrid.RowSelectionModel(),
stripeRows : true,
view: myView,
//height: 390,
loadMask: true,
id: 'kad_tab',
autoExpandColumn:'cadColumn',
title:'Земельные участки',
autoWidth:true,
autoScroll: true,
And view: 并查看:
var myView = new Ext.ux.grid.livegrid.GridView({
nearLimit : 70,
autoFill: true,
scrollOffset: 0,
loadMask : {
msg : 'Buffering. Please wait...'
}
});
And how its look: 以及它的外观:
You see that there some problem with last row. 您会看到最后一行存在一些问题。 I think its becouse horizontal scroll. 我认为它是因为水平滚动。 Its possible to remove horizontal scroll? 是否可以删除水平滚动?
Try this 尝试这个
forceFit: true
inside viewConfig of the grid 网格的viewConfig内部
use style:{overflowX:'hidden'} or {'overflow-x':'hidden'}. 使用样式:{overflowX:'hidden'}或{'overflow-x':'hidden'}。
' hidden ' should be the class. “ 隐藏 ”应该是该类。
and also try autoscroll:false 并尝试使用autoscroll:false
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.