EXT复合表头谷歌浏览器Chrome错位解决办法

来源:互联网 发布:分布式更新数据 编辑:程序博客网 时间:2024/06/05 05:12
转载自:http://www.oschina.net/code/snippet_201314_15163
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))-2+'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;},});

0 0