tauri-apps / tauri-apps/tauri

[bug] setMinSize will change window position in windows

Open
#9,507 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

platform: Windows status: needs triage type: bug
Dominant language
Rust
Stars
111k
Forks
4k
Avg merge
2d 1h
Merged PRs (30d)
44

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Tauri window API entry point for setMinSize and trace its Windows-specific implementation. Reproduce the TypeScript example on Windows 10, then verify that changing the minimum size leaves both the window size and position unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, typescript
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.