fix:计算滚动条的宽度

This commit is contained in:
izbz wh 2019-06-25 20:07:20 +08:00
parent 5604daa355
commit cf304dca9c
3 changed files with 9 additions and 7 deletions

10
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -159,9 +159,9 @@ class Table extends Component {
EventUtil.addHandler(this.contentTable,'focus',this.onFocus);
setTimeout(this.resetScrollX, 300);
//含有纵向滚动条
if(this.props.scroll.y){
// if(this.props.scroll.y){
this.scrollbarWidth = measureScrollbar();
}
// }
//后续也放在recevice里面
if (!this.props.originWidth) {
this.computeTableWidth();