0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Fix button position with default divider position

This commit is contained in:
G.Ambatte
2022-05-29 13:49:08 +12:00
parent 160cfcce4d
commit db5e4fc36c

View File

@@ -29,6 +29,10 @@ const SplitPane = createClass({
userSetDividerPos : dividerPos,
windowWidth : window.innerWidth
});
} else {
this.setState({
currentDividerPos : window.innerWidth / 2
});
}
window.addEventListener('resize', this.handleWindowResize);
},
@@ -83,7 +87,8 @@ const SplitPane = createClass({
window.getSelection().removeAllRanges();
}
},
*/
*/
renderDivider : function(){
return <>
<div className='arrow left'