From aff8abd5206e9a76ee8d91c1ac8acb7b379c27f3 Mon Sep 17 00:00:00 2001 From: IRRDC Date: Thu, 11 Jul 2024 11:34:53 +0200 Subject: [PATCH] Fix #838 --- src/controls/gridLayout/GridLayout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controls/gridLayout/GridLayout.tsx b/src/controls/gridLayout/GridLayout.tsx index 9a566558d..6600b54a4 100644 --- a/src/controls/gridLayout/GridLayout.tsx +++ b/src/controls/gridLayout/GridLayout.tsx @@ -73,6 +73,7 @@ export class GridLayout extends React.Component { + if (this._isCompact) { + return this.props.items.length * this._rowHeight; + } return this._rowHeight * ROWS_PER_PAGE; }