simplify
This commit is contained in:
parent
f84206bff0
commit
11f2367589
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue