mirror of
https://github.com/Tim-Paik/neutauri.git
synced 2024-10-12 23:29:41 +00:00
fix windows window resize bug
This commit is contained in:
parent
2a0fafc5bf
commit
857aae8493
@ -191,7 +191,9 @@ pub fn dev(config_path: String) -> wry::Result<()> {
|
||||
event: WindowEvent::CloseRequested,
|
||||
..
|
||||
} => *control_flow = ControlFlow::Exit,
|
||||
_ => (),
|
||||
_ => {
|
||||
let _ = webview.resize();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -180,7 +180,9 @@ fn main() -> wry::Result<()> {
|
||||
event: WindowEvent::CloseRequested,
|
||||
..
|
||||
} => *control_flow = ControlFlow::Exit,
|
||||
_ => (),
|
||||
_ => {
|
||||
let _ = webview.resize();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user