Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Problems with positioning of multiple WebviewWindow #11170

Open
moom-en opened this issue Sep 28, 2024 · 0 comments
Open

[bug] Problems with positioning of multiple WebviewWindow #11170

moom-en opened this issue Sep 28, 2024 · 0 comments
Labels
scope: unstable flag Issue only occures with "unstable" feature flag enabled status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@moom-en
Copy link

moom-en commented Sep 28, 2024

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),
)?;

maximize:
image
unmaximize:
image

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

@moom-en moom-en added status: needs triage This issue needs to triage, applied to new issues type: bug labels Sep 28, 2024
@moom-en moom-en changed the title [bug] [bug] Problems with the position of WebviewWindow Sep 28, 2024
@moom-en moom-en changed the title [bug] Problems with the position of WebviewWindow [bug] Problems with positioning of multiple WebviewWindow Sep 28, 2024
@FabianLars FabianLars added the scope: unstable flag Issue only occures with "unstable" feature flag enabled label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: unstable flag Issue only occures with "unstable" feature flag enabled status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants