fix:模态框中使用table,计算的滚动条宽度为0的bug
This commit is contained in:
parent
f287618102
commit
f5eb769e4f
|
@ -204,6 +204,11 @@ class Table extends Component {
|
|||
if(nextProps.resetScroll){
|
||||
this.resetScrollX();
|
||||
}
|
||||
// fix:模态框中使用table,计算的滚动条宽度为0的bug
|
||||
if(this.scrollbarWidth<=0 && this.props.scroll.y){
|
||||
this.scrollbarWidth = measureScrollbar();
|
||||
}
|
||||
|
||||
|
||||
// console.log('this.scrollTop**********',this.scrollTop);
|
||||
|
||||
|
|
Loading…
Reference in New Issue