Increase timeout delay to wait virtualizer

Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
alexfront committed 2022-09-09 11:06:41 +03:00
1 parent aeb0127a8f
commit c4f41db275
1 file changed
+2 -1
@@ -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]);
}