Refactor
This commit is contained in:
parent
14d1de0573
commit
f25f12527e
3 changed files with 14 additions and 14 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.showVerticalScrollBar) 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