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

minWidth has no effect without minHeight in tauri windows config #7075

Closed
Picorims opened this issue May 27, 2023 · 2 comments · Fixed by #10242
Closed

minWidth has no effect without minHeight in tauri windows config #7075

Picorims opened this issue May 27, 2023 · 2 comments · Fixed by #10242
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Picorims
Copy link

Describe the bug

When configuring the minWidth property in tauri's windows configuration, it does not take effect until a minHeight is defined as well. Here is an example.
image

Reproduction

  1. Define minWidth in the windows configuration (making sure minHeight is not set).
  2. Obersve the window being resizable beyond the minimum value.
  3. Define minHeight in the windows configuration, keeping minWidth untouched.
  4. Observe minWidth taking effect and effectively constraining window resizing.

Expected behavior

The window is constrained to not be resizable beyond the minWidth value, even if the minHeight value is not defined.

Platform and versions

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 113.0.1774.57
    ✔ MSVC:
        - Visual Studio Community�2019
        - Visual Studio Build Tools 2017
    ✔ rustc: 1.69.0 (84c898d65 2023-04-16)
    ✔ Cargo: 1.69.0 (6e9a83356 2023-04-12)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 16.13.1
    - npm: 9.6.6

[-] Packages
    - tauri [RUST]: 1.3.0
    - tauri-build [RUST]: 1.3.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.1
    - @tauri-apps/api [NPM]: 1.3.0
    - @tauri-apps/cli [NPM]: 1.3.1

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http:https://localhost:1420/
    - framework: Svelte
    - bundler: Vite

Stack trace

No response

Additional context

No response

@Picorims Picorims added status: needs triage This issue needs to triage, applied to new issues type: bug labels May 27, 2023
@FabianLars
Copy link
Member

Upstream issue: tauri-apps/tao#138

@Xyndra
Copy link

Xyndra commented Jun 22, 2024

same problem here

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

Successfully merging a pull request may close this issue.

3 participants