

|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 |
Ext.override(Ext.grid.GridView,{getColumnStyle : function(colIndex, isHeader) {var
colModel = this.cm,colConfig = colModel.config,style = isHeader ? ‘‘
: colConfig[colIndex].css || ‘‘,align = colConfig[colIndex].align;if(Ext.isChrome){style += String.format("width: {0};", parseInt(this.getColumnWidth(colIndex))-4+‘px‘);}else{style += String.format("width: {0};", this.getColumnWidth(colIndex));}if
(colModel.isHidden(colIndex)) {style += ‘display: none; ‘;}if
(align) {style += String.format("text-align: {0};", align);}return
style;}}); |

exjs3.2的gridPanel的表头总宽度与列的总宽度不一致的解决方案
原文:http://www.cnblogs.com/wangqc/p/extjs_columnWidth.html