Use the right variables when detecting max height

pull/21833/head
Travis Ralston 2020-07-08 07:53:55 -06:00
parent b2abe61fc5
commit b4f3b8ab11
1 changed files with 1 additions and 1 deletions

View File

@ -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;