mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 22:52:40 +00:00
Merge pull request #1760 from G-Ambatte/fixDivider-#1674
Limit divider position
This commit is contained in:
@@ -40,8 +40,12 @@ const SplitPane = createClass({
|
||||
},
|
||||
handleMove : function(e){
|
||||
if(!this.state.isDragging) return;
|
||||
|
||||
const minWidth = 1;
|
||||
const maxWidth = window.innerWidth - 13;
|
||||
const newSize = Math.min(maxWidth, Math.max(minWidth, e.pageX));
|
||||
this.setState({
|
||||
size : e.pageX
|
||||
size : newSize
|
||||
});
|
||||
},
|
||||
/*
|
||||
|
||||
@@ -28,5 +28,8 @@
|
||||
color : #666;
|
||||
}
|
||||
}
|
||||
&:hover{
|
||||
background-color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user