Merge pull request #2479 from matrix-org/bwindels/defaultsizeforleftpanel
Redesign: set default size of 350px for left panel
This commit is contained in:
commit
38fe6775ee
1 changed files with 5 additions and 2 deletions
|
@ -183,10 +183,13 @@ const LoggedInView = React.createClass({
|
|||
},
|
||||
|
||||
_loadResizerPreferences() {
|
||||
const lhsSize = window.localStorage.getItem("mx_lhs_size");
|
||||
let lhsSize = window.localStorage.getItem("mx_lhs_size");
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue