正在显示
3 个修改的文件
包含
2 行增加
和
1 行删除
@@ -291,7 +291,8 @@ | @@ -291,7 +291,8 @@ | ||
291 | _initHeader.apply(this, Array.prototype.slice.apply(arguments)); | 291 | _initHeader.apply(this, Array.prototype.slice.apply(arguments)); |
292 | this.$header.find('th[data-field]').each(function (i) { | 292 | this.$header.find('th[data-field]').each(function (i) { |
293 | var column = $(this).data(); | 293 | var column = $(this).data(); |
294 | - if (typeof column['width'] !== 'undefined') { | 294 | + if (typeof column['width'] !== 'undefined' && column['width'].toString().indexOf("%") === -1) { |
295 | + $(".th-inner", this).outerWidth(column['width']); | ||
295 | $(this).css("max-width", column['width']); | 296 | $(this).css("max-width", column['width']); |
296 | } | 297 | } |
297 | }); | 298 | }); |
此 diff 太大无法显示。
此 diff 太大无法显示。
-
请 注册 或 登录 后发表评论