[bug] Problems with positioning of multiple WebviewWindow
moom-en opened this issue · 0 comments
moom-en commented
Describe the bug
After maximizing the window and then restoring the window, the position of the webviewWindow does not remain the same as the initial location.
window.add_child(
tauri::webview::WebviewBuilder::new(
"abc",
WebviewUrl::App(format!("abc.html", url.unwrap()).into()),
)
.auto_resize(),
LogicalPosition::new(57, 68),
LogicalSize::new(size.width - 57, size.height - 68),
)?;
Reproduction
No response
Expected behavior
No response
Full tauri info
output
[✔] Environment
- OS: Windows 10.0.19045 X64
✔ WebView2: 129.0.2792.52
✔ MSVC:
- Visual Studio Enterprise 2022
- Visual Studio ���ɹ��� 2022
✔ rustc: 1.80.1 (3f5fd8dd4 2024-08-06)
✔ Cargo: 1.80.1 (376290515 2024-07-16)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
- node: 20.17.0
- yarn: 1.22.19
- npm: 10.8.2
[-] Packages
- tauri [RUST]: 2.0.0-rc.16
- tauri-build [RUST]: 2.0.0-rc.13
- wry [RUST]: 0.44.1
- tao [RUST]: 0.30.2
- @tauri-apps/api [NPM]: 2.0.0-rc.6
- @tauri-apps/cli [NPM]: 1.4.0 (outdated, latest: 1.6.2)
Stack trace
No response
Additional context
No response