Invoke onShowMoreRooms to allow parents to kick their scrollbars..
parent
0ee1892a0b
commit
302c63058b
|
@ -72,7 +72,8 @@ var RoomSubList = React.createClass({
|
||||||
collapsed: React.PropTypes.bool.isRequired,
|
collapsed: React.PropTypes.bool.isRequired,
|
||||||
onHeaderClick: React.PropTypes.func,
|
onHeaderClick: React.PropTypes.func,
|
||||||
alwaysShowHeader: React.PropTypes.bool,
|
alwaysShowHeader: React.PropTypes.bool,
|
||||||
incomingCall: React.PropTypes.object
|
incomingCall: React.PropTypes.object,
|
||||||
|
onShowMoreRooms: React.PropTypes.func
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
|
@ -85,7 +86,8 @@ var RoomSubList = React.createClass({
|
||||||
|
|
||||||
getDefaultProps: function() {
|
getDefaultProps: function() {
|
||||||
return {
|
return {
|
||||||
onHeaderClick: function() {} // NOP
|
onHeaderClick: function() {}, // NOP
|
||||||
|
onShowMoreRooms: function() {} // NOP
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -294,9 +296,7 @@ var RoomSubList = React.createClass({
|
||||||
this.setState({
|
this.setState({
|
||||||
truncateAt: -1
|
truncateAt: -1
|
||||||
});
|
});
|
||||||
// kick gemini in the balls to get it to wake up
|
this.props.onShowMoreRooms();
|
||||||
// XXX: uuuuuuugh.
|
|
||||||
this.props.list.forceUpdate();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
|
Loading…
Reference in New Issue