提交 f84206bf 编写于 作者: qq_29861335's avatar qq_29861335

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

上级 3d38c6c8
......@@ -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;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册