Skip to content

A local-first personal finance app

Fix calculation of how many table rows to render (#1262)

Jed Fox70f00b6bb40c
diff --git a/packages/desktop-client/src/components/FixedSizeList.js b/packages/desktop-client/src/components/FixedSizeList.js
index 424560f36b..fa4a47cce7 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 0000000000..cffe2316a7
--- /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