最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to remove horizontal scroll from grid? - Stack Overflow

programmeradmin4浏览0评论

I have a Grid Panel in ExtJs 3.4 app:

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?

I have a Grid Panel in ExtJs 3.4 app:

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?

Share Improve this question edited Feb 14, 2013 at 10:28 CD.. 74.2k25 gold badges159 silver badges169 bronze badges asked Feb 14, 2013 at 10:26 Kliver MaxKliver Max 5,30924 gold badges101 silver badges157 bronze badges 3
  • @A1rPun: It's not work. – Kliver Max Commented Feb 14, 2013 at 10:52
  • 2 forceFit: true inside viewConfig – sushant jain Commented Feb 14, 2013 at 11:37
  • @sushant jain: Its work. If you make answer from your ment i'll accept this. – Kliver Max Commented Feb 15, 2013 at 6:40
Add a ment  | 

2 Answers 2

Reset to default 6

Try this

forceFit: true 

inside viewConfig of the grid

use style:{overflowX:'hidden'} or {'overflow-x':'hidden'}.

'hidden' should be the class.

and also try autoscroll:false

发布评论

评论列表(0)

  1. 暂无评论