Commit 24e156e6a557c04ca47126a6a5f233de59970401
Committed by
GitHub
Merge pull request #2775 from hxsf/patch-1
fix last column resize bug when no data
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/table/mixin.js
... | ... | @@ -25,7 +25,7 @@ export default { |
25 | 25 | width = this.columnsWidth[column._index].width; |
26 | 26 | } |
27 | 27 | // when browser has scrollBar,set a width to resolve scroll position bug |
28 | - if (this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) { | |
28 | + if (width && this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) { | |
29 | 29 | width += this.$parent.scrollBarWidth; |
30 | 30 | } |
31 | 31 | // when fixed type,reset first right fixed column's width | ... | ... |