0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 08:32:41 +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, userSetDividerPos : dividerPos,
windowWidth : window.innerWidth windowWidth : window.innerWidth
}); });
} else {
this.setState({
currentDividerPos : window.innerWidth / 2
});
} }
window.addEventListener('resize', this.handleWindowResize); window.addEventListener('resize', this.handleWindowResize);
}, },
@@ -83,7 +87,8 @@ const SplitPane = createClass({
window.getSelection().removeAllRanges(); window.getSelection().removeAllRanges();
} }
}, },
*/ */
renderDivider : function(){ renderDivider : function(){
return <> return <>
<div className='arrow left' <div className='arrow left'