From da5fc0449cb5e7e4f3ca88a29f15b27188ac60b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 31 Aug 2024 18:02:05 +0200 Subject: [PATCH] Actually make initialTopMostItemIndex make some sense MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/components/scrollable-list.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/pl-fe/src/components/scrollable-list.tsx b/packages/pl-fe/src/components/scrollable-list.tsx index 1c7cf6d23..64706542f 100644 --- a/packages/pl-fe/src/components/scrollable-list.tsx +++ b/packages/pl-fe/src/components/scrollable-list.tsx @@ -216,8 +216,9 @@ const ScrollableList = React.forwardRef(({ if (initialTopMostItemIndex) { if (typeof initialTopMostItemIndex === 'number') { return { - align: 'center', + align: 'start', index: initialTopMostItemIndex, + offset: 60, }; } return initialTopMostItemIndex;