2013-02-14 26 views
1

我在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, 

,並查看:

var myView = new Ext.ux.grid.livegrid.GridView({ 
    nearLimit : 70, 
    autoFill: true, 
    scrollOffset: 0, 
    loadMask : { 
     msg : 'Buffering. Please wait...' 
    } 
}); 

以及如何它的外觀:

enter image description here

你看,有一些問題,最後一行。我認爲它是橫向卷軸。 它可能刪除水平滾動?

+0

'自動滾屏:FALSE'? – A1rPun 2013-02-14 10:39:38

+0

@ A1rPun:這不行。 – 2013-02-14 10:52:32

+2

forceFit:true viewConfig – 2013-02-14 11:37:39

回答

5

試試這個

forceFit: true 

內viewConfig電網

2

使用樣式:{overflowX:'hidden'}或{'overflow-x':'hidden'}。

'隱藏'應該是班級。

,並嘗試自動滾屏:假

+0

'autoscroll:false'沒有幫助。我可以在哪寫'{'overflow-x':'隱藏'}。 '? – 2013-02-15 06:02:29