mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
hook up resizer events
This commit is contained in:
parent
39ab3d86bd
commit
01082c8595
1 changed files with 8 additions and 1 deletions
|
@ -135,6 +135,13 @@ module.exports = React.createClass({
|
|||
|
||||
componentDidMount: function() {
|
||||
this.dispatcherRef = dis.register(this.onAction);
|
||||
this.resizer = new Resizer(this.resizeContainer, FixedDistributor, null, FlexSizer);
|
||||
this.resizer.setClassNames({
|
||||
handle: "mx_ResizeHandle",
|
||||
vertical: "mx_ResizeHandle_vertical",
|
||||
reverse: "mx_ResizeHandle_reverse"
|
||||
});
|
||||
this.resizer.attach();
|
||||
this.mounted = true;
|
||||
},
|
||||
|
||||
|
@ -632,7 +639,7 @@ module.exports = React.createClass({
|
|||
const subListComponents = mapProps(subLists);
|
||||
|
||||
return (
|
||||
<div className="mx_RoomList">
|
||||
<div ref={(d) => this.resizeContainer = d} className="mx_RoomList">
|
||||
{ subListComponents }
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue