update comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
63ec793fad
commit
19e1c79796
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue