计算宽度重置宽度差值、lastShowIndex
This commit is contained in:
parent
a1ccde76cc
commit
cd9eb1e09c
|
@ -10823,7 +10823,7 @@
|
|||
this.setState({ contentWidthDiff: contentWidthDiff, lastShowIndex: lastShowIndex });
|
||||
} else {
|
||||
this.contentWidth = this.computeWidth;
|
||||
this.setState({ contentWidth: this.contentWidth }); //重新渲染,为了显示滚动条
|
||||
this.setState({ contentWidthDiff: 0, lastShowIndex: lastShowIndex }); //重新渲染,为了显示滚动条
|
||||
}
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -200,7 +200,7 @@ class Table extends Component {
|
|||
this.setState({contentWidthDiff,lastShowIndex});
|
||||
}else{
|
||||
this.contentWidth = this.computeWidth;
|
||||
this.setState({contentWidth:this.contentWidth});//重新渲染,为了显示滚动条
|
||||
this.setState({contentWidthDiff:0,lastShowIndex});//重新渲染,为了显示滚动条
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue