mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 18:52:38 +00:00
Reset position in local storage on divider reset
This commit is contained in:
@@ -33,6 +33,7 @@ const SplitPane = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
resetSize : function() {
|
resetSize : function() {
|
||||||
|
window.localStorage.removeItem(this.props.storageKey);
|
||||||
this.setState({
|
this.setState({
|
||||||
size : window.innerWidth / 2
|
size : window.innerWidth / 2
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user