From 70f00b6bb40c80e7bda709050c1bf2e1b10122b0 Mon Sep 17 00:00:00 2001
From: Jed Fox <git@jedfox.com>
Date: Mon, 3 Jul 2023 08:05:33 -0400
Subject: [PATCH] Fix calculation of how many table rows to render (#1262)

---
 packages/desktop-client/src/components/FixedSizeList.js | 2 +-
 upcoming-release-notes/1262.md                          | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 upcoming-release-notes/1262.md

diff --git a/packages/desktop-client/src/components/FixedSizeList.js b/packages/desktop-client/src/components/FixedSizeList.js
index 424560f36..fa4a47cce 100644
--- a/packages/desktop-client/src/components/FixedSizeList.js
+++ b/packages/desktop-client/src/components/FixedSizeList.js
@@ -336,7 +336,7 @@ export default class FixedSizeList extends PureComponent {
 
   getStopIndexForStartIndex = (startIndex, scrollOffset) => {
     const offset = startIndex * this.props.itemSize;
-    const size = this.props.width;
+    const size = this.props.height;
     const numVisibleItems = Math.ceil(
       (size + scrollOffset - offset) / this.props.itemSize,
     );
diff --git a/upcoming-release-notes/1262.md b/upcoming-release-notes/1262.md
new file mode 100644
index 000000000..cffe2316a
--- /dev/null
+++ b/upcoming-release-notes/1262.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [j-f1]
+---
+
+Fix tables appearing to have a blank area in tall-but-narrow windows
-- 
GitLab