From c4f41db2759bcc800d9f433860ab4996103872d7 Mon Sep 17 00:00:00 2001 From: alexfront Date: Fri, 9 Sep 2022 11:06:41 +0300 Subject: [PATCH] Increase timeout delay to wait virtualizer Signed-off-by: alexfront --- .../components/dock/logs/use-initial-scroll-to-bottom.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/dock/logs/use-initial-scroll-to-bottom.ts b/src/renderer/components/dock/logs/use-initial-scroll-to-bottom.ts index 164df8aab6..98910c77ab 100644 --- a/src/renderer/components/dock/logs/use-initial-scroll-to-bottom.ts +++ b/src/renderer/components/dock/logs/use-initial-scroll-to-bottom.ts @@ -7,8 +7,9 @@ import type { LogTabViewModel } from "./logs-view-model"; export function useInitialScrollToBottom(model: LogTabViewModel, callback: () => void) { useEffect(() => { + // TODO: Consider more precise way to check when list ready to scroll setTimeout(() => { callback(); - }, 300); // Giving some time virtual library to render its rows + }, 800); // Giving some time virtual library to render its rows }, [model.logTabData.get()?.selectedPodId]); }