fix fullscreen resize bug (#1191)

This commit is contained in:
Mike Sawka 2024-11-01 10:59:17 -07:00 committed by GitHub
parent 8893a42cd6
commit 55250de97a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -430,12 +430,14 @@ function createBaseWaveBrowserWindow(
if (tabView) { if (tabView) {
tabView.webContents.send("fullscreen-change", true); tabView.webContents.send("fullscreen-change", true);
} }
positionTabOnScreen(win.activeTabView, win.getContentBounds());
}); });
win.on("leave-full-screen", async () => { win.on("leave-full-screen", async () => {
const tabView = win.activeTabView; const tabView = win.activeTabView;
if (tabView) { if (tabView) {
tabView.webContents.send("fullscreen-change", false); tabView.webContents.send("fullscreen-change", false);
} }
positionTabOnScreen(win.activeTabView, win.getContentBounds());
}); });
win.on("focus", () => { win.on("focus", () => {
if (getGlobalIsRelaunching()) { if (getGlobalIsRelaunching()) {