diff --git a/src/stores/room-list/ListLayout.ts b/src/stores/room-list/ListLayout.ts index 1e7d8f0763..99674fe74f 100644 --- a/src/stores/room-list/ListLayout.ts +++ b/src/stores/room-list/ListLayout.ts @@ -91,7 +91,7 @@ export class ListLayout { public setVisibleTilesWithin(newVal: number, maxPossible: number) { maxPossible = maxPossible + RESIZER_BOX_FACTOR; - if (this.visibleTiles > maxPossible) { + if (newVal > maxPossible) { this.visibleTiles = maxPossible; } else { this.visibleTiles = newVal;