Skip to content

Commit f07a25a

Browse files
committed
fix: change all webview view bound to avoid under view display on resize.
1 parent b7f7e00 commit f07a25a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/main/webviewManager.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,18 @@ export function initWebviewManager(win: BrowserWindow) {
8585

8686
console.log('[update-webview-rect] info:', info);
8787

88-
const webview = webviewMap.get(info.key);
89-
if (webview) {
88+
// Change All View to avoid under view display on resize.
89+
webviewMap.forEach((webview) => {
9090
webview.hidden = false;
9191
webview.view.setBounds(fixRect(info.rect, win.isFullScreen()));
92-
}
92+
});
93+
94+
// Change Single View
95+
// const webview = webviewMap.get(info.key);
96+
// if (webview) {
97+
// webview.hidden = false;
98+
// webview.view.setBounds(fixRect(info.rect, win.isFullScreen()));
99+
// }
93100
});
94101

95102
ipcMain.on('hide-all-webview', (e) => {

0 commit comments

Comments
 (0)