From 5125b83a9312475a792cbd11f1d66562dcf27ea2 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 16 Oct 2024 16:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main.js b/main.js index 832fda1..a3b35f1 100644 --- a/main.js +++ b/main.js @@ -348,12 +348,7 @@ app.on('ready', () => { }); // 设置子窗口 ipcMain.handle('setChildWindow', (event, config) => { - const child = childWindow[config.key]; - const display = screen.getDisplayMatching({ ...child.getBounds() }); - const { width, height } = display.size - let x, y; if (config.key === 'shareScreenWindow') { - x = Math.round((width - config.width) / 2); childWindow[config.key].setBounds({ width: config.width }) } });