add option for whitespace behaviour and handle height

This commit is contained in:
Bruno Windels 2019-01-28 18:02:36 +01:00
parent 88f25dec4d
commit 8d1e105b50
2 changed files with 12 additions and 7 deletions

View file

@ -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,