From 8929ff9b5e57b955f59f9f3fee80b84f9e1bb934 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 26 Nov 2018 14:41:39 +0100 Subject: [PATCH] use room resize classes --- src/components/views/rooms/RoomList.js | 4 ++-- src/resizer/index.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 126ff5b3b9..230e6b1e66 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -36,7 +36,7 @@ import GroupStore from '../../../stores/GroupStore'; import RoomSubList from '../../structures/RoomSubList'; import ResizeHandle from '../elements/ResizeHandle'; -import {Resizer, FixedDistributor, FlexSizer} from '../../../resizer' +import {Resizer, RoomDistributor, RoomSizer} from '../../../resizer' const HIDE_CONFERENCE_CHANS = true; const STANDARD_TAGS_REGEX = /^(m\.(favourite|lowpriority|server_notice)|im\.vector\.fake\.(invite|recent|direct|archived))$/; @@ -136,7 +136,7 @@ module.exports = React.createClass({ componentDidMount: function() { this.dispatcherRef = dis.register(this.onAction); - this.resizer = new Resizer(this.resizeContainer, FixedDistributor, null, FlexSizer); + this.resizer = new Resizer(this.resizeContainer, RoomDistributor, null, RoomSizer); this.resizer.setClassNames({ handle: "mx_ResizeHandle", vertical: "mx_ResizeHandle_vertical", diff --git a/src/resizer/index.js b/src/resizer/index.js index df7a839b9b..69e1f572e6 100644 --- a/src/resizer/index.js +++ b/src/resizer/index.js @@ -17,6 +17,7 @@ limitations under the License. import {Sizer, FlexSizer} from "./sizer"; import {FixedDistributor, CollapseDistributor, PercentageDistributor} from "./distributors"; import {Resizer} from "./resizer"; +import {RoomSizer, RoomDistributor} from "./room"; module.exports = { Resizer, @@ -25,4 +26,6 @@ module.exports = { FixedDistributor, CollapseDistributor, PercentageDistributor, + RoomSizer, + RoomDistributor, };