From 42cb690abde88c98cbb52fbf3bf3c7146b1ea772 Mon Sep 17 00:00:00 2001 From: tiddlygit-test Date: Fri, 13 Aug 2021 01:25:39 +0800 Subject: [PATCH] fix: try to fix sometimes new size is not correct this fixes https://github.com/tiddly-gittly/TiddlyGit-Desktop/issues/97 --- src/services/view/setupViewEventHandlers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/view/setupViewEventHandlers.ts b/src/services/view/setupViewEventHandlers.ts index b9551dc8..4f2e7a1d 100644 --- a/src/services/view/setupViewEventHandlers.ts +++ b/src/services/view/setupViewEventHandlers.ts @@ -103,6 +103,8 @@ export default function setupViewEventHandlers( view.webContents.once('did-stop-loading', () => { if (browserWindow.isFocused() && !view.webContents.isFocused()) { view.webContents.focus(); + // try to fix sometimes new size is not correct https://github.com/tiddly-gittly/TiddlyGit-Desktop/issues/97 + void workspaceViewService.realignActiveWorkspace(); } }); }