update Table #167

update Table
This commit is contained in:
梁灏 2017-01-05 14:10:08 +08:00
parent 3d6fa54b39
commit a404bbaed3
3 changed files with 11 additions and 3 deletions

View file

@ -19,7 +19,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) {
if (this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) {
width += this.$parent.scrollBarWidth;
}
// when fixed type,reset first right fixed column's width