fix windows window resize bug

This commit is contained in:
Tim-Paik 2022-04-06 23:15:58 +08:00
parent 2a0fafc5bf
commit 857aae8493
Signed by: Tim-Paik
GPG Key ID: DC36A050DB42566D
2 changed files with 6 additions and 2 deletions

View File

@ -191,7 +191,9 @@ pub fn dev(config_path: String) -> wry::Result<()> {
event: WindowEvent::CloseRequested,
..
} => *control_flow = ControlFlow::Exit,
_ => (),
_ => {
let _ = webview.resize();
}
}
});
}

View File

@ -180,7 +180,9 @@ fn main() -> wry::Result<()> {
event: WindowEvent::CloseRequested,
..
} => *control_flow = ControlFlow::Exit,
_ => (),
_ => {
let _ = webview.resize();
}
}
});
}