fix overflow indicators not being updated when searching
This commit is contained in:
parent
e4d2b6f2b7
commit
3ea0fd1a2f
2 changed files with 24 additions and 2 deletions
|
@ -313,6 +313,12 @@ const RoomSubList = React.createClass({
|
|||
);
|
||||
},
|
||||
|
||||
checkOverflow: function() {
|
||||
if (this.refs.scroller) {
|
||||
this.refs.scroller.checkOverflow();
|
||||
}
|
||||
},
|
||||
|
||||
render: function() {
|
||||
const len = this.props.list.length + this.props.extraTiles.length;
|
||||
if (len) {
|
||||
|
@ -330,7 +336,7 @@ const RoomSubList = React.createClass({
|
|||
tiles.push(...this.props.extraTiles);
|
||||
return <div className={subListClasses}>
|
||||
{this._getHeaderJsx()}
|
||||
<IndicatorScrollbar className="mx_RoomSubList_scroll">
|
||||
<IndicatorScrollbar ref="scroller" className="mx_RoomSubList_scroll">
|
||||
{ tiles }
|
||||
</IndicatorScrollbar>
|
||||
</div>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue