2016-12-06 87 views
0

如何刪除網格面板的標題偏移量?現在頭div自動擁有"x-grid3-header-offset" {padding-left:1px;text-align:left}作爲其類,所以每行的內容將隨瀏覽器擴展而右移。它看起來是這樣的 -ExtJS 3.4.1 Grid Panel刪除標題偏移量

    table1     -----> table header 
col1  col2 col3 col4 col5  ----->column headers 
cell1 cell2 cell3 cell4 cell5  ----->cells of first row 
cell1 cell2 cell3 cell4 cell5  ----->cells of second row 

如何從股利刪除該類所以表格單元格看起來正常的這樣嗎?

    table1     -----> table header 
col1  col2 col3 col4 col5  ----->column headers 
cell1 cell2 cell3 cell4 cell5  ----->cells of first row 
cell1 cell2 cell3 cell4 cell5  ----->cells of second row 
+0

請爲我們提供一個小提琴;我懷疑錯誤的列定義或ExtJS錯誤。 – Alexander

回答

1
renderer:function(val,cell){ 
      cell.align='right'; 
      return val; 
     } 

使用渲染功能,在您列,這裏是一個fiddle

更多關於列渲染器here

+0

似乎無法與ExtJS 3.4.1 – Lixu

+0

我剛更新的描述,你可以看看 – Lixu