This commit is contained in:
huanghong 2018-03-20 19:31:06 +08:00
parent 9fea8e7de0
commit 42fa79572a

View file

@ -401,14 +401,14 @@
this.showHorizontalScrollBar = bodyWidth < bodyContentWidth + (this.showVerticalScrollBar?this.scrollBarWidth:0); this.showHorizontalScrollBar = bodyWidth < bodyContentWidth + (this.showVerticalScrollBar?this.scrollBarWidth:0);
if(this.showVerticalScrollBar){ if(this.showVerticalScrollBar){
bodyEl.classList.add(this.prefixCls +'-overflowY') bodyEl.classList.add(this.prefixCls +'-overflowY');
}else{ }else{
bodyEl.classList.remove(this.prefixCls +'-overflowY') bodyEl.classList.remove(this.prefixCls +'-overflowY');
} }
if(this.showHorizontalScrollBar){ if(this.showHorizontalScrollBar){
bodyEl.classList.add(this.prefixCls +'-overflowX') bodyEl.classList.add(this.prefixCls +'-overflowX');
}else{ }else{
bodyEl.classList.remove(this.prefixCls +'-overflowX') bodyEl.classList.remove(this.prefixCls +'-overflowX');
} }
} }