update comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-07-07 10:35:16 +01:00
parent 63ec793fad
commit 19e1c79796
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
if (isCollapsed && roomIndex > -1) { if (isCollapsed && roomIndex > -1) {
this.toggleCollapsed(); this.toggleCollapsed();
} }
// extend the visible section to include the room // extend the visible section to include the room if it is entirely invisible
if (roomIndex >= this.numVisibleTiles) { if (roomIndex >= this.numVisibleTiles) {
this.props.layout.visibleTiles = this.props.layout.tilesWithPadding(roomIndex + 1, MAX_PADDING_HEIGHT); this.props.layout.visibleTiles = this.props.layout.tilesWithPadding(roomIndex + 1, MAX_PADDING_HEIGHT);
this.forceUpdate(); // because the layout doesn't trigger a re-render this.forceUpdate(); // because the layout doesn't trigger a re-render