Invoke onShowMoreRooms to allow parents to kick their scrollbars..

This commit is contained in:
Kegan Dougal 2016-01-22 15:46:58 +00:00
parent 0ee1892a0b
commit 302c63058b

View File

@ -72,7 +72,8 @@ var RoomSubList = React.createClass({
collapsed: React.PropTypes.bool.isRequired,
onHeaderClick: React.PropTypes.func,
alwaysShowHeader: React.PropTypes.bool,
incomingCall: React.PropTypes.object
incomingCall: React.PropTypes.object,
onShowMoreRooms: React.PropTypes.func
},
getInitialState: function() {
@ -85,7 +86,8 @@ var RoomSubList = React.createClass({
getDefaultProps: function() {
return {
onHeaderClick: function() {} // NOP
onHeaderClick: function() {}, // NOP
onShowMoreRooms: function() {} // NOP
};
},
@ -294,9 +296,7 @@ var RoomSubList = React.createClass({
this.setState({
truncateAt: -1
});
// kick gemini in the balls to get it to wake up
// XXX: uuuuuuugh.
this.props.list.forceUpdate();
this.props.onShowMoreRooms();
},
render: function() {