use room resize classes
This commit is contained in:
parent
0939a40d3a
commit
8929ff9b5e
2 changed files with 5 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue