Merge pull request #2775 from hxsf/patch-1
fix last column resize bug when no data
This commit is contained in:
commit
24e156e6a5
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export default {
|
||||||
width = this.columnsWidth[column._index].width;
|
width = this.columnsWidth[column._index].width;
|
||||||
}
|
}
|
||||||
// when browser has scrollBar,set a width to resolve scroll position bug
|
// when browser has scrollBar,set a width to resolve scroll position bug
|
||||||
if (this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) {
|
if (width && this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) {
|
||||||
width += this.$parent.scrollBarWidth;
|
width += this.$parent.scrollBarWidth;
|
||||||
}
|
}
|
||||||
// when fixed type,reset first right fixed column's width
|
// when fixed type,reset first right fixed column's width
|
||||||
|
|
Loading…
Add table
Reference in a new issue