Merge pull request #2775 from hxsf/patch-1

fix last column resize bug when no data
This commit is contained in:
Aresn 2018-01-15 18:17:52 +08:00 committed by GitHub
commit 24e156e6a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ export default {
width = this.columnsWidth[column._index].width;
}
// 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;
}
// when fixed type,reset first right fixed column's width