mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
fix fullscreen resize bug (#1191)
This commit is contained in:
parent
8893a42cd6
commit
55250de97a
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user