1个回答
展开全部
Ext.grid.ColumnModel.override({
getTotalWidth: function(includeHidden) {
var off = 0;
if (Ext.isChrome){
off = 2;
};
if (!this.totalWidth) {
this.totalWidth = 0;
for (var i = 0, len = this.config.length; i < len; i++) {
if (includeHidden || !this.isHidden(i)) {
this.totalWidth += this.getColumnWidth(i)+off;
};
};
};
return this.totalWidth;
}
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询