mirror of https://github.com/Tim-Paik/neutauri.git
fix windows window resize bug
This commit is contained in:
parent
76e13856bd
commit
2f9e3b80ba
|
@ -191,7 +191,9 @@ pub fn dev(config_path: String) -> wry::Result<()> {
|
||||||
event: WindowEvent::CloseRequested,
|
event: WindowEvent::CloseRequested,
|
||||||
..
|
..
|
||||||
} => *control_flow = ControlFlow::Exit,
|
} => *control_flow = ControlFlow::Exit,
|
||||||
_ => (),
|
_ => {
|
||||||
|
let _ = webview.resize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ fn main() -> wry::Result<()> {
|
||||||
event: WindowEvent::CloseRequested,
|
event: WindowEvent::CloseRequested,
|
||||||
..
|
..
|
||||||
} => *control_flow = ControlFlow::Exit,
|
} => *control_flow = ControlFlow::Exit,
|
||||||
_ => (),
|
_ => {
|
||||||
|
let _ = webview.resize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue