From b4f3b8ab11210f91a3a126985b3b0be06c044cd7 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 8 Jul 2020 07:53:55 -0600 Subject: [PATCH] Use the right variables when detecting max height --- src/stores/room-list/ListLayout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;