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 = {};
if (this.bodyHeight !== 0) {
let height = this.bodyHeight - (this.showHorizontalScrollBar?this.scrollBarWidth:0);
if(this.height) {
style.height = this.showHorizontalScrollBar ? `${height}px` : `${height - 1}px`;
} else if (this.maxHeight) {
style.maxHeight = this.showHorizontalScrollBar ? `${height}px` : `${height - 1}px`;
}
const bodyHeight = this.showHorizontalScrollBar ? `${height}px` : `${height - 1}px`;
if (this.height) style.height = bodyHeight;
else if (this.maxHeight) style.maxHeight = bodyHeight;
}
return style;
},