There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(electron): screen resize sometimes does not work well after maximize (#8413)
pengx17f5c49a6ac9b9
diff --git a/packages/frontend/apps/electron/src/main/windows-manager/tab-views.ts b/packages/frontend/apps/electron/src/main/windows-manager/tab-views.tsindex e8fa68104d..0aa42c3c23 100644--- a/packages/frontend/apps/electron/src/main/windows-manager/tab-views.ts+++ b/packages/frontend/apps/electron/src/main/windows-manager/tab-views.ts@@ -693,7 +693,13 @@ export class WebContentViewsManager {}};screenSizeChangeEvents.forEach(event => {- w.on(event as any, onResize);+ w.on(event as any, () => {+ onResize();+ // sometimes the resize event is too fast, the view is not ready for the new size (esp. on linux)+ setTimeout(() => {+ onResize();+ }, 100);+ });});// add shell view