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] setMinSize will change window position in windows #9507

Open
flappyBug opened this issue Apr 19, 2024 · 1 comment
Open

[bug] setMinSize will change window position in windows #9507

flappyBug opened this issue Apr 19, 2024 · 1 comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@flappyBug
Copy link

Describe the bug

setMinSize will change window position in windows

Reproduction

in js api,

import { LogicalSize, getCurrent } from '@tauri-apps/api/window';
const currentWindow = getCurrent();
currentWindow.setMinSize(new LogicalSize(1280, 860));

Expected behavior

Window size and position won't change.

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.17763 X64
    ✔ WebView2: 123.0.2420.97
    ✔ MSVC:
        - Visual Studio Community 2022
        - Visual Studio ���ɹ��� 2022
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 18.17.0
    - pnpm: 8.15.4
    - npm: 9.6.7

[-] Packages
    - tauri [RUST]: 1.6.1
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.8
    - tauri-cli [RUST]: 1.5.10
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 1.5.10 (outdated, latest: 1.5.11)

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: build/dist
    - devPath: http://localhost:3000/

Stack trace

No response

Additional context

No response

@flappyBug flappyBug added status: needs triage This issue needs to triage, applied to new issues type: bug labels Apr 19, 2024
@amrbashir
Copy link
Member

I can't seem to reproduce this, can you show a video of the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants