mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
Use the right variables when detecting max height
This commit is contained in:
parent
b2abe61fc5
commit
b4f3b8ab11
@ -91,7 +91,7 @@ export class ListLayout {
|
|||||||
|
|
||||||
public setVisibleTilesWithin(newVal: number, maxPossible: number) {
|
public setVisibleTilesWithin(newVal: number, maxPossible: number) {
|
||||||
maxPossible = maxPossible + RESIZER_BOX_FACTOR;
|
maxPossible = maxPossible + RESIZER_BOX_FACTOR;
|
||||||
if (this.visibleTiles > maxPossible) {
|
if (newVal > maxPossible) {
|
||||||
this.visibleTiles = maxPossible;
|
this.visibleTiles = maxPossible;
|
||||||
} else {
|
} else {
|
||||||
this.visibleTiles = newVal;
|
this.visibleTiles = newVal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user