fix table changing small scrollbar bug
This commit is contained in:
parent
ebaf3c1d89
commit
14d1de0573
4 changed files with 32 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue