mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 21:32:42 +00:00
Fix button position with default divider position
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user