set default size of 350px for left panel

pull/21833/head
Bruno Windels 2019-01-22 16:40:11 +01:00
parent 3c8bd3fc78
commit 7301d6a3c3
1 changed files with 5 additions and 2 deletions

View File

@ -183,10 +183,13 @@ const LoggedInView = React.createClass({
}, },
_loadResizerPreferences() { _loadResizerPreferences() {
const lhsSize = window.localStorage.getItem("mx_lhs_size"); let lhsSize = window.localStorage.getItem("mx_lhs_size");
if (lhsSize !== null) { if (lhsSize !== null) {
this.resizer.forHandleAt(0).resize(parseInt(lhsSize, 10)); lhsSize = parseInt(lhsSize, 10);
} else {
lhsSize = 350;
} }
this.resizer.forHandleAt(0).resize(lhsSize);
}, },
onAccountData: function(event) { onAccountData: function(event) {