mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
fix-bug (#3022)
This commit is contained in:
@@ -89,6 +89,7 @@ class DirColumnView extends React.Component {
|
||||
}
|
||||
|
||||
onResizeMouseDown = () => {
|
||||
this.containerWidth = this.refs.viewModeContainer.clientWidth;
|
||||
this.setState({
|
||||
inResizing: true
|
||||
});
|
||||
@@ -134,7 +135,6 @@ class DirColumnView extends React.Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.containerWidth = this.refs.viewModeContainer.clientWidth;
|
||||
let rate = this.getCookie('navRate');
|
||||
if (rate) {
|
||||
this.setState({
|
||||
@@ -148,7 +148,7 @@ class DirColumnView extends React.Component {
|
||||
const select = this.state.inResizing ? 'none' : '';
|
||||
const mainFlex = '1 0 ' + (1 - this.state.navRate) * 100 + '%';
|
||||
return (
|
||||
<div className="cur-view-content view-mode-container" onMouseMove={onResizeMove} onMouseUp={this.onResizeMouseUp} ref="viewModeContainer">
|
||||
<div className="d-flex" onMouseMove={onResizeMove} onMouseUp={this.onResizeMouseUp} ref="viewModeContainer">
|
||||
<DirColumnNav
|
||||
currentPath={this.props.path}
|
||||
repoPermission={this.props.repoPermission}
|
||||
|
Reference in New Issue
Block a user