本文主要是介绍EXT复合表头谷歌浏览器Chrome错位解决办法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
转载自: http://www.oschina.net/code/snippet_201314_15163Ext.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;},
});
这篇关于EXT复合表头谷歌浏览器Chrome错位解决办法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!