add option for whitespace behaviour and handle height
This commit is contained in:
parent
88f25dec4d
commit
8d1e105b50
2 changed files with 12 additions and 7 deletions
|
@ -82,6 +82,10 @@ module.exports = React.createClass({
|
|||
this.collapsedState = collapsedJson ? JSON.parse(collapsedJson) : {};
|
||||
this._layoutSections = [];
|
||||
|
||||
const options = {
|
||||
allowWhitespace: false,
|
||||
handleHeight: 1,
|
||||
};
|
||||
this._layout = new Layout((key, size) => {
|
||||
const subList = this._subListRefs[key];
|
||||
if (subList) {
|
||||
|
@ -95,7 +99,7 @@ module.exports = React.createClass({
|
|||
window.localStorage.setItem("mx_roomlist_sizes",
|
||||
JSON.stringify(this.subListSizes));
|
||||
}
|
||||
}, this.subListSizes, this.collapsedState);
|
||||
}, this.subListSizes, this.collapsedState, options);
|
||||
|
||||
return {
|
||||
isLoadingLeftRooms: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue