fix table changing small scrollbar bug

This commit is contained in:
huanghong 2018-03-17 02:16:19 +08:00
parent ebaf3c1d89
commit 14d1de0573
4 changed files with 32 additions and 13 deletions

View file

@ -86,7 +86,7 @@
styles () {
const style = Object.assign({}, this.styleObject);
let scrollBarWidth = this.$parent.scrollBarWidth;
if(!this.$parent.showScrollBar()) scrollBarWidth = 0;
if(!this.$parent.showScrollBar) scrollBarWidth = 0;
const width = this.$parent.bodyHeight === 0 ? parseInt(this.styleObject.width) : parseInt(this.styleObject.width) + scrollBarWidth;
style.width = `${width}px`;
return style;