Javascript 如何从网格中删除水平滚动?
我在ExtJs 3.4应用程序中有一个网格面板:Javascript 如何从网格中删除水平滚动?,javascript,extjs,extjs3,Javascript,Extjs,Extjs3,我在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, l
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,
和视图:
var myView = new Ext.ux.grid.livegrid.GridView({
nearLimit : 70,
autoFill: true,
scrollOffset: 0,
loadMask : {
msg : 'Buffering. Please wait...'
}
});
以及它的外观:
你看最后一排有问题。我认为这是因为水平卷轴。
可以删除水平滚动吗?使用样式:{overflowX:'hidden'}或{'overflow-x':'hidden'} “hidden”应该是类
还可以尝试autoscroll:false使用样式:{overflowX:'hidden'}或{'overflow-x':'hidden'} “hidden”应该是类 还可以尝试autoscroll:false试试这个
forceFit: true
网格的内部视图配置
forceFit: true
网格的内部视图配置@A1rPun:它不工作。forceFit:内部为trueviewConfig@sushant杰恩:它的工作。如果你从你的评论中做出回答,我会接受。@A1rPun:这不起作用。forceFit:内部为trueviewConfig@sushant杰恩:它的工作。如果你从你的评论中做出回答,我会接受的。autoscroll:false没有帮助。我可以在哪里写{'overflow-x':'hidden'}?自动滚动:错误,没有帮助。我可以在哪里写{'overflow-x':'hidden'}?