fix: 修复show-summary、fixed同时存在,且max-height设置的比实际高度高的时候,合计被顶出去的问题

This commit is contained in:
Xu Zhimeng 2021-09-17 13:45:44 +08:00
parent 3d38c6c8cb
commit f84206bff0

View file

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