This commit is contained in:
Aresn 2021-09-17 14:58:55 +08:00 committed by GitHub
parent f84206bff0
commit 11f2367589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -497,12 +497,9 @@
let style = {}; let style = {};
if (this.bodyHeight !== 0) { if (this.bodyHeight !== 0) {
let height = this.bodyHeight - (this.showHorizontalScrollBar?this.scrollBarWidth:0); let height = this.bodyHeight - (this.showHorizontalScrollBar?this.scrollBarWidth:0);
if(this.height) { const bodyHeight = this.showHorizontalScrollBar ? `${height}px` : `${height - 1}px`;
style.height = this.showHorizontalScrollBar ? `${height}px` : `${height - 1}px`; if (this.height) style.height = bodyHeight;
} else if (this.maxHeight) { else if (this.maxHeight) style.maxHeight = bodyHeight;
style.maxHeight = this.showHorizontalScrollBar ? `${height}px` : `${height - 1}px`;
}
} }
return style; return style;
}, },