You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Use the right variables when detecting max height
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user