tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
79.46k stars 2.36k forks source link

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

Open flappyBug opened 2 months ago

flappyBug commented 2 months ago

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

amrbashir commented 2 months ago

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