You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
hook up resizer events
This commit is contained in:
@@ -135,6 +135,13 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
this.dispatcherRef = dis.register(this.onAction);
|
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;
|
this.mounted = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -632,7 +639,7 @@ module.exports = React.createClass({
|
|||||||
const subListComponents = mapProps(subLists);
|
const subListComponents = mapProps(subLists);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomList">
|
<div ref={(d) => this.resizeContainer = d} className="mx_RoomList">
|
||||||
{ subListComponents }
|
{ subListComponents }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user